-
Notifications
You must be signed in to change notification settings - Fork 40
35 lines (33 loc) · 1020 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
35
name: Continuous Integration
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }} environment
uses: actions/setup-node@v2.1.4
with:
node-version: 20.x
- name: Install dependencies
run: yarn install --immutable
- name: Run unit test
run: yarn run test
check:
name: Lint and Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.4
with:
node-version: 20.x
- name: Install dependencies
run: yarn install --immutable
- name: Check lint and format
run: yarn run check