-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.31 KB
/
playwright.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
56
57
58
name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
KUBECONFIG: /home/runner/.kube/config
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .tool-versions
- name: Setup elixir
id: beam
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
install-rebar: true
install-hex: true
- name: install livebook
run: mix escript.install --force hex livebook
- uses: engineerd/[email protected]
id: kind
with:
version: v0.20.0
name: kino-k8s
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run livebook
env:
LIVEBOOK_TOKEN_ENABLED: 0
run: livebook server &
- name: Run Playwright tests
env:
KUBECONTEXT: ''
run: KUBECONFIG="${KUBECONFIG}" npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30