-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 915 Bytes
/
nodejs.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
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
- uses: actions/cache@v2
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.OS }}-node-
- name: yarn install
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: yarn run check:tsc
run: yarn run check:tsc
- name: yarn run check:eslint
run: yarn run check:eslint
- name: yarn run check:prettier
run: yarn run check:prettier
- name: yarn run test:type
run: yarn run test:type
- name: yarn run test:jest
run: yarn run test:jest
- name: yarn run build
run: yarn run build