-
Notifications
You must be signed in to change notification settings - Fork 20
56 lines (49 loc) · 1.37 KB
/
ci.yml
File metadata and controls
56 lines (49 loc) · 1.37 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build_and_check:
strategy:
matrix:
node: ['14.x']
runs-on: ubuntu-latest
name: Lint and Test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Cache Yarn dependencies
uses: actions/cache@v2
with:
path: |
node_modules
key:
${{ runner.OS }}-${{ matrix.node }}-yarn-cache-${{
hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-
- run: yarn --no-progress --non-interactive --frozen-lockfile
- run: yarn build #next js will lint and typecheck *some* files but to cover everything we run linting and typecheck as separate steps
- run: yarn lint
- run: yarn format
- run: yarn typecheck
- run: yarn test
- name: 'Build storybook'
run: yarn build-storybook
e2e_test:
strategy:
matrix:
node: ['14.x']
runs-on: ubuntu-latest
name: Run e2e tests
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: yarn --no-progress --non-interactive --frozen-lockfile
- run: yarn build
- run: yarn test:e2e