File tree Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1111 type : string
1212 required : true
1313 description : " task to check the platform targets"
14+ upload-code-coverage :
15+ type : boolean
16+ description : " enabled uploading coverage report to codecov"
17+ required : false
18+ default : false
1419
1520jobs :
1621 check :
4651 ${{ inputs.task }}
4752 detektAll
4853 ktlintCheck
49- apiCheck
54+ apiCheck
55+ koverXmlReport
56+ - name : Upload coverage reports to Codecov
57+ if : inputs.upload-code-coverage
58+ uses : codecov/codecov-action@v3
59+ env :
60+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 1616 with :
1717 run-on : ubuntu-latest
1818 task : linuxAllTest
19+ upload-code-coverage : true
1920 check-macos :
2021 uses : ./.github/workflows/check.yml
2122 with :
Original file line number Diff line number Diff line change 4343 --no-daemon
4444 --info
4545 build
46- publish
46+ publish
47+ koverXmlReport
48+ - name : Upload coverage reports to Codecov
49+ uses : codecov/codecov-action@v3
50+ env :
51+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -121,6 +121,10 @@ kotlin {
121121 }
122122}
123123
124+ dependencies {
125+ kover(project(" :" ))
126+ }
127+
124128private val remotesFile = file(" $buildDir /remotes.json" )
125129
126130val generateRemoteSchemas =
You can’t perform that action at this time.
0 commit comments