-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (43 loc) · 1.04 KB
/
Copy pathci_frontend.yml
File metadata and controls
51 lines (43 loc) · 1.04 KB
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: CI Frontend
on:
push:
branches: ['**']
paths:
- 'static/**'
- 'test/**'
- '.github/workflows/ci_frontend.yml'
jobs:
frontend_lint:
name: Frontend Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run frontend syntax check
run: |
node -c static/script.js
node -c static/html_export.js
frontend_e2e:
name: Frontend E2E (Playwright)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install E2E deps and browsers
working-directory: test
run: npm run setup:ci
- name: Run E2E tests
working-directory: test
run: npm run test:ci