-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.26 KB
/
node_dev.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
name: Dev server test
on:
push:
paths:
- "website/**"
- "deploy.py"
- generate_local_test_config.sh
- .github/workflows/node_dev.yml
workflow_dispatch:
concurrency:
group: ci-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}-node-dev
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
exclude:
- os: ${{ github.ref != 'refs/heads/main' && 'macos-latest' }}
steps:
- uses: azure/setup-helm@v4
- name: Checkout repository
uses: actions/checkout@v4
- name: Install yaml package
run: pip install PyYAML requests
- name: Generate local test config
run: ./generate_local_test_config.sh
- name: Install dependencies
working-directory: website
run: |
npm install
npm install playwright --save-dev
- name: Test dev node server
working-directory: website
run: |
npm run start &
npx playwright install chromium
npx playwright screenshot localhost:3000 test.png
sleep 5
npx playwright screenshot localhost:3000 test.png