File tree 1 file changed +19
-12
lines changed
1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change 1
- # This is a basic workflow to help you get started with Actions
2
-
3
1
name : CI
4
2
5
- # Controls when the action will run. Triggers the workflow on push or pull request
6
- # events but only for the master branch
7
3
on :
8
4
push :
9
5
branches : [ master ]
10
6
pull_request :
11
7
branches : [ master ]
12
8
13
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
9
jobs :
15
- # This workflow contains a single job called "build"
16
- test :
17
- # The type of runner that the job will run on
10
+ install-deps :
18
11
runs-on : ubuntu-latest
19
-
20
- # Steps represent a sequence of tasks that will be executed as part of the job
21
12
steps :
22
13
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23
14
- uses : actions/checkout@v2
24
15
# Sets up node environment specified in .nvmrc
25
16
- uses : actions/setup-node@v2-beta
26
17
with :
27
18
node-version : ' 15.0.1'
19
+ # Restores cache, so every time yarn install didn't do the same thing
28
20
- name : Cache multiple paths
29
21
uses : actions/cache@v2
30
22
with :
@@ -35,12 +27,27 @@ jobs:
35
27
key : ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
36
28
- name : install npm dependencies
37
29
run : yarn config set cache-folder `pwd`/yarn-cache && yarn install --frozen-lockfile
30
+ build :
31
+ needs : [install-deps]
32
+ runs-on : ubuntu-latest
33
+ steps :
38
34
- name : build
39
35
run : yarn run build:test
36
+ lint :
37
+ needs : [install-deps]
38
+ runs-on : ubuntu-latest
39
+ steps :
40
40
- name : eslint
41
41
run : yarn run lint
42
+ test :
43
+ needs : [build]
44
+ runs-on : ubuntu-latest
45
+ steps :
42
46
- name : test
43
47
run : yarn run test:cypress:run:report
48
+ coverage :
49
+ needs : [test]
50
+ runs-on : ubuntu-latest
51
+ steps :
44
52
- name : coverage
45
- run : yarn run test:coverage
46
-
53
+ run : yarn run test:coverage
You can’t perform that action at this time.
0 commit comments