generated from furystack/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.17 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
name: E2E testing
on: [push]
jobs:
build:
name: Lint, Build and test
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 21.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Install Playwright browsers
run: yarn playwright install --with-deps
- name: Dockerize
run: yarn dockerize
- name: Start from Docker conatiner
run: docker run -d --name pi-rat -p 9090:9090 furystack/pi-rat
- run: yarn test:e2e:install
name: 'Test Installer'
- run: yarn test:e2e
name: 'E2E tests'
env:
E2E_TEMP: /home/node/app/tmp
- run: docker logs pi-rat
if: always()
name: Dump Docker logs
- uses: actions/upload-artifact@v2
name: Upload Playwright traces
if: failure()
with:
path: test-results
name: test-results