-
Notifications
You must be signed in to change notification settings - Fork 1.9k
47 lines (41 loc) · 1.24 KB
/
frontend.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
name: Frontend Tests & Coverage
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
paths:
- 'frontend/taipy-gui/**'
workflow_dispatch:
jobs:
frontend-jest:
timeout-minutes: 20
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./frontend/taipy-gui
steps:
- uses: actions/checkout@v3
- name: npm build and test with node ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dom dependencies
working-directory: ./frontend/taipy-gui/dom
run: npm ci
- name: Install dependencies
run: npm ci --omit=optional
- run: npm run build --if-present
- run: npm test
- name: Code coverage
if: matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request'
uses: artiomtr/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
threshold: "80"
working-directory: "frontend/taipy-gui"
skip-step: "install"