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-06-11 20:36:44 -05:00
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
2022-11-12 16:05:08 -05:00
|
|
|
- name: Use Node
|
2023-08-14 09:29:54 -05:00
|
|
|
uses: actions/setup-node@bea5baf987ba7aa777a8a0b4ace377a21c45c381 # tag=v3
|
2022-11-12 16:05:08 -05:00
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: Install pnpm
|
|
|
|
run: |
|
|
|
|
corepack enable
|
2023-04-12 01:23:01 -05:00
|
|
|
corepack prepare --activate pnpm@latest-8
|
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-01-13 14:38:39 -05:00
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
|
2022-11-12 16:05:08 -05:00
|
|
|
with:
|
|
|
|
name: videos
|
|
|
|
path: /home/runner/work/verdaccio/verdaccio/e2e/ui/cypress/videos
|