Skip to content

Commit

Permalink
Merge pull request #73 from winebarrel/fix_finish_job
Browse files Browse the repository at this point in the history
Add Check test conclusion
  • Loading branch information
winebarrel authored Feb 24, 2025
2 parents c9b63fc + 43c801b commit b9d0aeb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -63,7 +63,13 @@ jobs:
- name: Run tests
run: bundle exec rake
finish:
needs: build
needs: test
if: always()
runs-on: ubuntu-latest
steps:
- run: echo OK
- name: Check test conclusion
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs \
| jq -e '.jobs | map(select(.name | test("^test ")).conclusion) | any(. == "failure") | not'

0 comments on commit b9d0aeb

Please sign in to comment.