Skip to content

Commit

Permalink
Merge pull request #576 from Vampire/use-if-always
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Izso authored and GitHub committed May 19, 2025
2 parents 890a17c + 302102c commit 0b4ea9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- run: npm test

- name: Upload test results
if: success() || failure()
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: test-results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Create test report
uses: ./
if: success() || failure()
if: ${{ !cancelled() }}
with:
name: JEST Tests
path: __tests__/__results__/*.xml
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Test Report
uses: dorny/test-reporter@v2
if: success() || failure() # run this step even if previous step failed
if: ${{ !cancelled() }} # run this step even if previous step failed
with:
name: JEST Tests # Name of the check run which will be created
path: reports/jest-*.xml # Path to test results
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- run: npm ci # install packages
- run: npm test # run tests (configured to use jest-junit reporter)
- uses: actions/upload-artifact@v4 # upload test results
if: success() || failure() # run this step even if previous step failed
if: ${{ !cancelled() }} # run this step even if previous step failed
with:
name: test-results
path: jest-junit.xml
Expand Down

0 comments on commit 0b4ea9b

Please sign in to comment.