File tree 3 files changed +51
-3
lines changed
3 files changed +51
-3
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 main branch
7
+ on :
8
+ push :
9
+ branches : [ next ]
10
+ pull_request :
11
+ branches : [ next ]
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
+ build :
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
+
23
+ - uses : actions/checkout@master
24
+
25
+ - name : Setup Node
26
+ uses : actions/setup-node@v1
27
+ with :
28
+ node-version : ' 12.x'
29
+
30
+ # Runs a set of commands using the runners shell
31
+ - name : Install dependencies
32
+ run : yarn install
33
+
34
+ - name : Build packages
35
+ run : yarn build
36
+
37
+ - name : Test packages
38
+ run : yarn test --coverage
39
+
40
+ - name : Upload to Codecov
41
+ uses : codecov/codecov-action@v1
42
+ with :
43
+ token : ${{ secrets.CODECOV_TOKEN }}
44
+ file : ./coverage/clover.xml
45
+ fail_ci_if_error : true
46
+ directory : ./coverage/lcov-report/
Original file line number Diff line number Diff line change 14
14
15
15
* .log
16
16
17
- package-lock.json
17
+ package-lock.json
18
+
19
+ coverage
Original file line number Diff line number Diff line change 16
16
"server" : " http-server"
17
17
},
18
18
"engines" : {
19
- "yarn" : " 1.10.1 " ,
20
- "node" : " 8.9.0 "
19
+ "yarn" : " >=1 <2 " ,
20
+ "node" : " >=10 "
21
21
},
22
22
"repository" : {
23
23
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments