diff options
Diffstat (limited to '.github/workflows/ruby.yml')
-rw-r--r-- | .github/workflows/ruby.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index b359a28..8ec504e 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -19,7 +19,7 @@ on: - ".github/workflows/ruby.yml" jobs: - build-and-test: + lint-build-and-test: runs-on: ubuntu-latest name: Ruby steps: @@ -29,12 +29,12 @@ jobs: with: ruby-version: ruby bundler-cache: true - - name: Build and test with Rake + - name: Lint, Build and Test with Rake run: bundle exec rake publish-preview: runs-on: ubuntu-latest - needs: build-and-test + needs: lint-build-and-test if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} name: Publish Preview to GitHub Package Registry permissions: @@ -64,7 +64,7 @@ jobs: publish-release: name: Push gem to RubyGems.org - needs: build-and-test + needs: lint-build-and-test # Only run on this on proper semver (vX.Y.Z) tags if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }} runs-on: ubuntu-latest |