Skip to content

Commit 406337b

Browse files
committed
ensure subsequent steps are run in aps-cypress-e2e GHA
1 parent 231a4cd commit 406337b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/aps-cypress-e2e.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,21 @@ jobs:
6565
done
6666
6767
- name: Upload E2E Test Results HTML Report
68+
if: always()
6869
uses: actions/upload-artifact@v4
6970
with:
7071
name: test-results-html
7172
path: ${{ github.workspace }}/e2e/results/report
7273

7374
- name: Upload E2E Test Results JSON Report
75+
if: always()
7476
uses: actions/upload-artifact@v4
7577
with:
7678
name: test-results-json
7779
path: ${{ github.workspace }}/e2e/results/bcgov-aps-e2e-report.json
7880

7981
- name: Upload E2E Code Coverage Report
82+
if: always()
8083
uses: actions/upload-artifact@v4
8184
with:
8285
name: code-coverage
@@ -89,6 +92,7 @@ jobs:
8992
path: ${{ github.workspace }}/e2e/cypress/fixtures/state/scanResult.json
9093

9194
- name: Instrument the code for coverage analysis
95+
if: always()
9296
run: |
9397
# Rewrite the paths as the coverage starts with '../app'!
9498
sed -e 's/..\/app/./g' ./e2e/coverage/lcov.info > lcov.info
@@ -98,6 +102,7 @@ jobs:
98102
#npx nyc instrument --compact=false . --in-place
99103
100104
- name: SonarCloud Scan
105+
if: always()
101106
uses: sonarsource/sonarcloud-github-action@master
102107
with:
103108
args: >
@@ -113,6 +118,7 @@ jobs:
113118
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
114119

115120
- name: Check for failed tests and create Issue
121+
if: always()
116122
env:
117123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118124
run: |

0 commit comments

Comments
 (0)