Skip to content

Commit

Permalink
ci(test): only send windows notification on failure (#3297)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge authored Jul 31, 2024
1 parent 3d8ab53 commit b77268d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,12 @@ jobs:
- name: Run windows tests and capture exit code
continue-on-error: true
run: |
try {
npm run test:windows --workspace artillery
$global:ExitCode = 0
} catch {
$global:ExitCode = $LASTEXITCODE
}
echo "ExitCode=$global:ExitCode" >> $env:GITHUB_ENV
npm run test:windows --workspace artillery
echo "HAS_PASSED=$?" >> $env:GITHUB_ENV
env:
FORCE_COLOR: 1
- name: Notify about failures
if: ${{ env.ExitCode }} != 0
if: env.HAS_PASSED == 'False'
uses: 8398a7/action-slack@v3.15.1
with:
status: failure
Expand Down

0 comments on commit b77268d

Please sign in to comment.