-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.35 KB
/
playwrightCI.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: playwright CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./app/client/package-lock.json
- name: get config file
run: |
pwd
cp ./app/server/src/resources/config.json.in.development ./app/server/src/resources/config.json
- name: Run all components
working-directory: .
run: ./scripts/run_test
- name: Install playwright and dependencies
working-directory: ./app/client
run: |
npx playwright install
- name: Run e2e tests
env:
MICROREACT_TOKEN: ${{ secrets.MICROREACT_TOKEN }}
working-directory: ./app/client
run: npx playwright test --reporter=github
- name: Stop all components
if: always()
working-directory: .
run: ./scripts/stop_test
- uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: app/client/test-results
# - name: tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3