-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 897 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
Test:
name: Run test codes
if: |
github.event.pull_request.draft == false
&& !startsWith(github.head_ref, 'release')
&& !startsWith(github.head_ref, 'doc')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install and cache nodejs
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install packages
run: npm ci
- name: Format check
run: npm run fmt:check
- name: Lint check
run: npm run lint
- name: Test and Show coverage
run: npm test -- --bail --maxWorkers=100% --watchAll=false --coverage