Skip to content

Commit

Permalink
setup ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
philsturgeon committed Dec 29, 2023
1 parent af8eb93 commit dae9964
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Install dependencies
run: bundle install

- name: Generate OpenAPI
run: bundle exec rake rswag
Expand All @@ -27,15 +33,21 @@ jobs:
with:
doc: rails-hello-openapi
token: ${{secrets.BUMP_TOKEN}}
file: swagger/v1/swagger.yml
file: swagger/v1/swagger.yaml

api-diff:
if: ${{ github.event_name == 'pull_request' }}
name: Check API diff on Bump.sh
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Install dependencies
run: bundle install

- name: Generate OpenAPI
run: bundle exec rake rswag
Expand All @@ -45,7 +57,7 @@ jobs:
with:
doc: rails-hello-openapi
token: ${{secrets.BUMP_TOKEN}}
file: swagger/v1/swagger.yml
file: swagger/v1/swagger.yaml
command: diff
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-3.3.0
ruby-2.7.0
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

0 comments on commit dae9964

Please sign in to comment.