Skip to content

Commit e62b76e

Browse files
committed
Update build.yaml
1 parent d9db619 commit e62b76e

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Build
1+
name: Build and Test
22

33
on:
44
workflow_call:
55

66
jobs:
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+

0 commit comments

Comments
 (0)