From 6bf881cd020e998fcfc185e6ac476c143abf1080 Mon Sep 17 00:00:00 2001 From: Vincent Giersch Date: Fri, 8 Mar 2024 10:37:58 +0100 Subject: [PATCH] chore(gh): run tests before launching release --- .github/workflows/gem-push.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/gem-push.yml b/.github/workflows/gem-push.yml index 7a39804..1d003de 100644 --- a/.github/workflows/gem-push.yml +++ b/.github/workflows/gem-push.yml @@ -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