-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(windows): notify about failures instead of failing step
- Loading branch information
1 parent
623a8f1
commit 90d411e
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|