-
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (32 loc) · 880 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
41
42
name: Test, lint, performance checks
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test, lint, performance checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore node_modules from cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Install project
run: yarn
- name: Run linter
run: yarn lint
- name: Run css linter
run: yarn lint-style
- name: Type check
run: yarn type-check
- name: Unit test
run: yarn test:coverage
- name: Check bundle size
run: yarn build && ./node_modules/.bin/bundlesize