Skip to content

Commit

Permalink
fix gha timeout check
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Jul 28, 2024
1 parent 3326486 commit 44c59b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ jobs:

- run: yarn update-env

- id: test
run: yarn test tests/${{ matrix.tests }}
- run: yarn test tests/${{ matrix.tests }} | tee output.txt

- if: ${{ failure() }}
run: grep -q "Test timed out" output.txt && echo "TIMEOUT=true" >> $GITHUB_ENV

- uses: ravsamhq/notify-slack-action@v2
if: ${{ failure() && !contains(steps.test.outputs.stdout, 'Test timed out') }}
if: ${{ failure() && env.TIMEOUT != 'true' }}
with:
status: ${{ job.status }}
env:
Expand Down

0 comments on commit 44c59b6

Please sign in to comment.