Skip to content

Commit

Permalink
add re-run jobs to phpunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmorb committed Oct 11, 2024
1 parent aa31d5c commit 1322269
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,13 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/logs/clover.xml
rerun-on-failure:
needs: phpunit
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-latest
steps:
- env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run rerun.yml -r ${{ github.head_ref || github.ref_name }} -F run_id=${{ github.run_id }}

0 comments on commit 1322269

Please sign in to comment.