-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (44 loc) · 1.21 KB
/
checker.yml
File metadata and controls
53 lines (44 loc) · 1.21 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
name: checker
on: [push]
jobs:
client-run-tests-and-lint:
name: client lint and run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: cache deps
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: install deps
run: yarn install
- name: run client unit tests use Jest
run: yarn test
working-directory: client
- name: run lint in client
run: yarn lint
working-directory: client
server-run-tests-and-lint:
name: server lint and run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: cache deps
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: install deps
run: yarn install
- name: run lint in server
run: yarn lint
working-directory: server