2022-11-12 16:05:08 -05:00
|
|
|
name: E2E UI
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: UI Test E2E
|
|
|
|
services:
|
|
|
|
verdaccio:
|
|
|
|
image: verdaccio/verdaccio:5
|
|
|
|
ports:
|
|
|
|
- 4873:4873
|
|
|
|
env:
|
|
|
|
NODE_ENV: production
|
|
|
|
steps:
|
2023-10-10 11:24:51 -05:00
|
|
|
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
2022-11-12 16:05:08 -05:00
|
|
|
- name: Use Node
|
2023-08-21 09:51:37 -05:00
|
|
|
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
|
2022-11-12 16:05:08 -05:00
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: Install pnpm
|
|
|
|
run: |
|
2023-10-23 14:49:18 -05:00
|
|
|
corepack enable
|
|
|
|
corepack install
|
2022-11-12 16:05:08 -05:00
|
|
|
- name: Install
|
2023-04-12 01:23:01 -05:00
|
|
|
run: pnpm install --reporter=silence --registry http://localhost:4873
|
2022-11-12 16:05:08 -05:00
|
|
|
- name: build
|
|
|
|
run: pnpm build
|
|
|
|
- name: Test UI
|
|
|
|
run: pnpm test:e2e:ui
|
2023-09-14 12:56:30 -05:00
|
|
|
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
|
2022-11-12 16:05:08 -05:00
|
|
|
with:
|
|
|
|
name: videos
|
|
|
|
path: /home/runner/work/verdaccio/verdaccio/e2e/ui/cypress/videos
|