File tree Expand file tree Collapse file tree 5 files changed +16
-30
lines changed
.github/actions/acceptance-tests Expand file tree Collapse file tree 5 files changed +16
-30
lines changed Original file line number Diff line number Diff line change 4646
4747 - name : Archive test results
4848 uses : actions/upload-artifact@v4
49+ if : always()
4950 with :
5051 name : ${{ inputs.testType }} - test report
5152 path : " tests/acceptance-test-report"
Original file line number Diff line number Diff line change @@ -4,28 +4,21 @@ set -euo pipefail
44
55# feature flag
66export NEXT_PUBLIC_ENABLE_PROOFING=true
7-
87export INCLUDE_AUTH_PAGES=true
98
109npm run accessibility-test-setup -w tests/accessibility
11-
1210npm run build
13-
1411mkdir -p ./frontend/public/testing
1512cp ./utils/utils/src/email-templates/* ./frontend/public/testing/
1613
1714npm run app:start --prefix frontend
18-
1915npm run app:wait --prefix frontend
2016
21- set +e
22- npm run test:accessibility -w tests/accessibility
23- TEST_EXIT_CODE=$?
24- set -e
17+ TEST_EXIT_CODE=0
18+ npm run test:accessibility -w tests/accessibility || TEST_EXIT_CODE=$?
2519echo " TEST_EXIT_CODE=$TEST_EXIT_CODE "
2620
27- cp -r ./tests/accessibility/.reports/accessibility ./tests/acceptance-test-report
28-
21+ cp -r ./tests/accessibility/.reports/accessibility ./tests/acceptance-test-report/accessibility
2922npm run accessibility-test-teardown -w tests/accessibility
3023
3124exit $TEST_EXIT_CODE
Original file line number Diff line number Diff line change @@ -4,13 +4,11 @@ set -euo pipefail
44cd " $( git rev-parse --show-toplevel) "
55npx playwright install --with-deps > /dev/null
66cd tests/test-team
7-
8- set +e
9- npm run test:api
10- TEST_EXIT_CODE=$?
11- set -e
7+ TEST_EXIT_CODE=0
8+ npm run test:api || TEST_EXIT_CODE=$?
129echo " TEST_EXIT_CODE=$TEST_EXIT_CODE "
1310
14- cp -r ./playwright-report ../acceptance-test-report
11+ cp -r ./playwright-report ../acceptance-test-report/playwright-report
12+ [[ -e test-results ]] && cp -r ./test-results ../acceptance-test-report/test-results
1513
1614exit $TEST_EXIT_CODE
Original file line number Diff line number Diff line change @@ -4,14 +4,11 @@ set -euo pipefail
44cd " $( git rev-parse --show-toplevel) "
55npx playwright install --with-deps > /dev/null
66cd tests/test-team
7-
8- set +e
9- npm run test:local-ui
10- TEST_EXIT_CODE=$?
11- set -e
12-
7+ TEST_EXIT_CODE=0
8+ npm run test:local-ui || TEST_EXIT_CODE=$?
139echo " TEST_EXIT_CODE=$TEST_EXIT_CODE "
1410
15- cp -r ./playwright-report ../acceptance-test-report
11+ cp -r ./playwright-report ../acceptance-test-report/playwright-report
12+ [[ -e test-results ]] && cp -r ./test-results ../acceptance-test-report/test-results
1613
1714exit $TEST_EXIT_CODE
Original file line number Diff line number Diff line change @@ -4,14 +4,11 @@ set -euo pipefail
44cd " $( git rev-parse --show-toplevel) "
55npx playwright install --with-deps > /dev/null
66cd tests/test-team
7-
8- set +e
9- npm run test:e2e
10- TEST_EXIT_CODE=$?
11- set -e
12-
7+ TEST_EXIT_CODE=0
8+ npm run test:e2e || TEST_EXIT_CODE=$?
139echo " TEST_EXIT_CODE=$TEST_EXIT_CODE "
1410
15- cp -r ./playwright-report ../acceptance-test-report
11+ cp -r ./playwright-report ../acceptance-test-report/playwright-report
12+ [[ -e test-results ]] && cp -r ./test-results ../acceptance-test-report/test-results
1613
1714exit $TEST_EXIT_CODE
You can’t perform that action at this time.
0 commit comments