-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (38 loc) · 983 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
name: Test
on:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
name: Test, lint, typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Read .nvmrc
run: echo ::set-output name=nvmrc::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '${{ steps.nvm.outputs.nvmrc }}'
- uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: ${{ runner.OS }}-yarn-cache-v1-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-cache-v1-
- name: Install
run: yarn install --frozen-lockfile
- name: Bootstrap
run: yarn bootstrap
- name: Test
run: yarn test:ci
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Lint
run: yarn lint
- name: Typecheck
run: yarn typecheck