diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8a86e4..d5f8615 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/manual-run.yml b/.github/workflows/manual-run.yml index f8b1ee0..169c810 100644 --- a/.github/workflows/manual-run.yml +++ b/.github/workflows/manual-run.yml @@ -15,7 +15,7 @@ jobs: - name: Create test report uses: ./ - if: success() || failure() + if: ${{ !cancelled() }} with: name: JEST Tests path: __tests__/__results__/*.xml diff --git a/README.md b/README.md index 676d21e..ff030f2 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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