-
Notifications
You must be signed in to change notification settings - Fork 100
55 lines (44 loc) · 1.21 KB
/
e2e.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: Run E2E Tests
on:
pull_request:
branches:
- main
jobs:
test:
name: Run E2E Tests
runs-on: ubuntu-latest
steps:
- name: Check out E2E tests
uses: actions/checkout@v2
with:
repository: datopian/flowershow-template-e2e
- name: Check out Flowershow into test-app
uses: actions/checkout@v4
with:
path: test-app
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies for E2E tests
run: |
npm ci
npx playwright install --with-deps
- name: Install dependencies for template
run: npm ci
working-directory: test-app
- name: Replace template /content with fixture content
run: |
rm -rf test-app/content
cp -r fixtures/content test-app/content
- name: Build the app
run: npm run export
working-directory: test-app
- name: Run the tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30