-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.41 KB
/
e2e-ui-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: E2E Docker UI Cypress
on:
workflow_dispatch:
pull_request:
push:
schedule:
# run every sunday
- cron: '0 0 * * 0'
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Start containers
run: docker-compose -f "./docker/docker-e2e-ui/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: 18
- name: Node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version-file: '.nvmrc'
- name: Set up .npmrc
run: |
echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc
- name: registry
run: npm config set registry https://registry.verdaccio.org
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@latest-8
pnpm install
- name: login
run: npx npm-cli-login -u test -p test -e [email protected] -r http://localhost:4873
- name: build
run: pnpm build
- name: tests
run: pnpm test:ui
- name: Stop containers
if: always()
run: docker-compose -f "./docker/docker-e2e-ui/docker-compose.yaml" down