Skip to content

Commit

Permalink
chore(gh): run tests before launching release
Browse files Browse the repository at this point in the history
  • Loading branch information
gierschv committed Mar 8, 2024
1 parent 392298c commit 6bf881c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,24 @@ jobs:
pull-requests: write
packages: write
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: ruby
package-name: contrived_math
bump-minor-pre-major: true
version-file: "lib/flat_api/version.rb"
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
if: ${{ steps.release.outputs.release_created }}
- name: Install dependencies
run: |
bundle install
if: ${{ steps.release.outputs.release_created }}
- name: Run tests
run: |
bundle exec rspec
if: ${{ steps.release.outputs.release_created }}
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: ruby
package-name: contrived_math
bump-minor-pre-major: true
version-file: "lib/flat_api/version.rb"
- name: Publish to GPR
run: |
mkdir -p $HOME/.gem
Expand Down

0 comments on commit 6bf881c

Please sign in to comment.