File tree Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 3535 run : yarn --frozen-lockfile --prefer-offline
3636
3737 - name : Test
38- run : yarn test
38+ run : yarn test
3939
4040 - name : Upload dist
4141 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
4545 ./dist
4646 retention-days : 1
4747
48+ - name : Publish coverage report to Code Climate
49+ uses : paambaati/codeclimate-action@f429536ee076d758a24705203199548125a28ca7 # v9.0.0
50+ env :
51+ CC_TEST_REPORTER_ID : ${{secrets.CC_TEST_REPORTER_ID}}
52+ with :
53+ debug : true
54+ coverageLocations : coverage/lcov.info:lcov
55+
4856 package :
4957 name : Package
5058 runs-on : [ubuntu-latest]
Original file line number Diff line number Diff line change 55test-workspace /*
66! test-workspace /.vscode
77tools
8+ coverage
Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ scripts
1515tools /** /version.txt
1616tools /** /target.txt
1717tools /** /sha256.txt
18+ coverage
Original file line number Diff line number Diff line change @@ -4,4 +4,16 @@ module.exports = {
44 transform : {
55 "^.+.tsx?$" : [ "ts-jest" , { } ] ,
66 } ,
7+ collectCoverage : true ,
8+ collectCoverageFrom : [
9+ "src/**/*.{ts,tsx}" ,
10+ "!**/*.d.ts" ,
11+ "!**/*.factories.{ts,tsx}" ,
12+ "!src/desktop/extension.ts" ,
13+ ] ,
14+ coverageDirectory : "./coverage" ,
15+ coverageReporters : [
16+ "lcov" ,
17+ "text"
18+ ]
719} ;
You can’t perform that action at this time.
0 commit comments