mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
add lib build step to e2e test workflow
This commit is contained in:
parent
daed0ede9e
commit
e31ca32172
20
.github/workflows/test.e2e.yml
vendored
20
.github/workflows/test.e2e.yml
vendored
@ -17,6 +17,12 @@ jobs:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: './cypress/package-lock.json'
|
||||
|
||||
- name: Build Library
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
working-directory: ./lib
|
||||
|
||||
- name: Build Frontend
|
||||
run: |
|
||||
cp .env.dist .env
|
||||
@ -56,4 +62,18 @@ jobs:
|
||||
run: npm run test:split:auto
|
||||
working-directory: ./cypress
|
||||
|
||||
- name: Upload Cypress Screenshots
|
||||
uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: cypress-screenshots
|
||||
path: cypress/reports/screenshots
|
||||
retention-days: 7
|
||||
|
||||
- name: Upload Cypress Videos
|
||||
uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: cypress-videos
|
||||
path: cypress/reports/videos
|
||||
retention-days: 7
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user