forked from crackedstudio/tikka
-
Notifications
You must be signed in to change notification settings - Fork 0
112 lines (91 loc) · 2.45 KB
/
Copy pathe2e.yml
File metadata and controls
112 lines (91 loc) · 2.45 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
---
name: E2E Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 2 * * *'
concurrency:
group: '{{ github.workflow }}--{{ github.ref }}'
cancel-in-progress: true
permissions:
contents: read
jobs:
e2e-tests:
name: e2e-tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38c85af677262 # v4
- name: Setup Node.js
uses: actions/setup-node@49933a5288cacae8642d1e84afbd3f7d6820020 # v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run tests
run: npm run test
- name: Build project
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@033fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: build-artifacts
path: dist
integration-tests:
name: integration-tests
runs-on: ubuntu-latest
if: github.event_name == 'schedule'
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38c85af677262 # v4
- name: Setup Node.js
uses: actions/setup-node@49933a5288cacae8642d1e84afbd3f7d6820020 # v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Run integration tests
run: npm run test:integration
---
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: '{{ github.workflow }}--{{ github.ref }}'
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- uses: actions/checkout@3d3c42e55ac5ba8058257da76410c181273ba90b1 # v7
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
with:
node-version-file: .nvmrc
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: client/playwright-report/
retention-days: 30