File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1- name : Build
1+ name : Build and Test
22
33on :
44 workflow_call :
55
66jobs :
7- build :
7+ build-and-test :
88 runs-on : ubuntu-latest
99 permissions :
1010 contents : read
@@ -16,12 +16,25 @@ jobs:
1616 uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1717 with :
1818 node-version : 22
19+ cache : ' npm' # Added caching for faster installs
1920
2021 - name : Install dependencies
2122 run : npm ci
2223
2324 - name : Build
2425 run : npm run build
2526
26- - name : Test
27+ - name : Run Cypress Tests
2728 run : npm run test
29+ continue-on-error : true
30+
31+ - name : Upload Cypress Screenshots
32+ if : always() # Run this step even if tests fail
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : cypress-screenshots
36+ path : |
37+ cypress/screenshots/
38+ retention-days : 7 # Keep artifacts for 7 days
39+ if-no-files-found : warn # Warn instead of fail if no screenshots found
40+
You can’t perform that action at this time.
0 commit comments