Skip to content

Commit c1da45d

Browse files
committed
ci: store unit and integration test results together
1 parent 7bb299b commit c1da45d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ jobs:
4545
JEST_JUNIT_OUTPUT_NAME: unit-results.xml
4646
JEST_JUNIT_OUTPUT_DIR: test-results/unit
4747
run: npm run test:unit -- --reporters="default" --reporters="jest-junit" --coverage --coverageReporters=text --coverageReporters=lcov --maxWorkers="2"
48-
- name: Store Unit Test Results
49-
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
50-
with:
51-
name: unit-test-output
52-
path: ./test-results/*
5348
- name: Run Build
5449
env:
5550
NODE_OPTIONS: --max-old-space-size=4000
@@ -74,11 +69,12 @@ jobs:
7469
JEST_JUNIT_OUTPUT_NAME: results.txt
7570
JEST_JUNIT_OUTPUT_DIR: test-results/integration
7671
run: npm run test:integration -- --reporters="default" --reporters="jest-junit"
77-
- name: Store Integration Test Results
72+
- name: Store Test Results
73+
if: always() # Even if tests fail
7874
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
7975
with:
80-
name: integration-test-output
81-
path: ./test-results/*
76+
name: test-output
77+
path: ./test-results/* # Both unit and integration test results
8278
- run: |
8379
if [[ ${{contains(github.ref, 'hotfix')}} ]]; then
8480
sed -e "s|hotfix/REPLACE|${{ github.ref_name }}|" --in-place release.config.js

0 commit comments

Comments
 (0)