-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 981 Bytes
/
node-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
36
37
38
39
40
41
42
43
name: Node CI
on:
pull_request:
branches: ['**']
push:
branches: [main]
jobs:
run_all:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.11.0'
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
- name: 📦 Install dependencies
run: yarn install --immutable
- name: 🔨 Build
run: yarn build
- name: 💅🏼 Lint
run: yarn lint
# TODO:(nus3) テスト書く気になったら
# - name: 🚨 test
# run: yarn test
- name: ✅ Type check
run: yarn typecheck
- name: 📝 Check words
run: yarn check-words