Skip to content

Commit

Permalink
test(windows): notify about failures instead of failing step
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge committed Jul 26, 2024
1 parent 623a8f1 commit 90d411e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,15 @@ jobs:
node-version: 20.x
- run: npm install
- run: npm run build
- run: npm run test:windows --workspace artillery
- name: Run windows tests and capture exit code
continue-on-error: true
run: |
npm run test:windows --workspace ${{ matrix.package }} || set ERRORLEVEL=%ERRORLEVEL%
echo ExitCode=%ERRORLEVEL% >> $env:GITHUB_ENV
env:
FORCE_COLOR: 1
- name: Notify about failures
if: failure() && github.ref == 'refs/heads/main'
if: env.ExitCode != 0
uses: 8398a7/[email protected]
with:
status: ${{ job.status }}
Expand Down

0 comments on commit 90d411e

Please sign in to comment.