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