File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,21 @@ on: [pull_request, push]
5
5
jobs :
6
6
build :
7
7
runs-on : ubuntu-latest
8
-
8
+
9
9
steps :
10
10
- uses : actions/checkout@v2
11
11
12
12
- name : Install node
13
13
uses : actions/setup-node@v1
14
14
with :
15
- node-version : ' 18.x'
15
+ node-version : ' 18.x'
16
16
17
17
- name : Install dependencies
18
- run : npm install
18
+ run : npm install
19
19
20
20
- name : Test
21
21
run : npm run test
22
22
23
- - name : Coveralls GitHub Action
24
- uses : coverallsapp/github-action@v2
25
- with :
26
- github-token : ${{ secrets.COVERALLS_REPO_TOKEN }}
23
+ - run : npx coveralls < coverage/lcov.info
24
+ env :
25
+ COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
Original file line number Diff line number Diff line change @@ -16,5 +16,8 @@ const config: Config.InitialOptions = {
16
16
'\\.(css|less|sass|scss)$' : 'identity-obj-proxy' ,
17
17
'^.+\\.svg$' : 'jest-transformer-svg' ,
18
18
} ,
19
+ collectCoverage : true ,
20
+ coverageReporters : [ 'lcov' , 'text' ] ,
21
+ coverageDirectory : './coverage'
19
22
}
20
23
export default config
You can’t perform that action at this time.
0 commit comments