2022-11-12 16:05:08 -05:00
|
|
|
name: E2E UI
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
permissions:
|
|
|
|
contents: read
|
2024-02-18 05:33:07 -05:00
|
|
|
concurrency:
|
2024-02-18 15:08:17 -05:00
|
|
|
group: e2e-ui-${{ github.ref }}
|
2024-02-18 05:33:07 -05:00
|
|
|
cancel-in-progress: true
|
2022-11-12 16:05:08 -05:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: UI Test E2E
|
|
|
|
services:
|
|
|
|
verdaccio:
|
|
|
|
image: verdaccio/verdaccio:5
|
|
|
|
ports:
|
|
|
|
- 4873:4873
|
|
|
|
env:
|
|
|
|
NODE_ENV: production
|
|
|
|
steps:
|
2024-03-18 14:03:27 -05:00
|
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3
|
2022-11-12 16:05:08 -05:00
|
|
|
- name: Use Node
|
2024-02-13 02:15:45 -05:00
|
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # 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
|
2023-12-31 08:34:29 -05:00
|
|
|
corepack prepare
|
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
|
2024-01-21 06:54:42 -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
|