From 7511c7bceb8ca2c15ee8b341c052db7caab1d16d Mon Sep 17 00:00:00 2001 From: Vincent Giersch Date: Fri, 8 Mar 2024 10:22:51 +0100 Subject: [PATCH] chore(gh): update release-please-action & run tests before release --- .github/workflows/gem-push.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gem-push.yml b/.github/workflows/gem-push.yml index 7074c59..57dc6b9 100644 --- a/.github/workflows/gem-push.yml +++ b/.github/workflows/gem-push.yml @@ -9,11 +9,10 @@ jobs: name: Build + Publish runs-on: ubuntu-latest permissions: - contents: read - packages: write - + contents: write + pull-requests: write steps: - - uses: GoogleCloudPlatform/release-please-action@v2 + - uses: google-github-actions/release-please-action@v4 id: release with: release-type: ruby @@ -27,6 +26,10 @@ jobs: with: ruby-version: 3.3 if: ${{ steps.release.outputs.release_created }} + - name: Run tests + run: | + bundle exec rspec + if: ${{ steps.release.outputs.release_created }} - name: Publish to GPR run: | mkdir -p $HOME/.gem