Skip to content

Commit

Permalink
CI: Add a tests_successful job
Browse files Browse the repository at this point in the history
Makes it easier to configure branch protection rules on GitHub.
  • Loading branch information
bquorning committed Nov 20, 2024
1 parent 81d1a02 commit a3c2bd4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,25 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- run: bundle install
bundler-cache: true
- name: Tests
run: bundle exec rake test

tests_successful:
name: Tests passing?
needs: tests
if: always()
runs-on: ubuntu-latest
steps:
- run: |
if ${{ needs.tests.result == 'success' }}
then
echo "All tests pass"
else
echo "Some tests failed"
false
fi
linter:
runs-on: ubuntu-latest
name: Linting of Ruby files
Expand Down

0 comments on commit a3c2bd4

Please sign in to comment.