-
Notifications
You must be signed in to change notification settings - Fork 39
40 lines (38 loc) · 868 Bytes
/
test.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
name: Test
on: pull_request
jobs:
formating:
name: Formating
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install
run: yarn install
- name: Prettier
run: yarn test:prettier
test:
name: Test Node.JS
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install
run: yarn install
- name: Test
run: yarn test
coverage:
name: Coverage Report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install
run: yarn install
- name: Test
run: yarn test --coverage