File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 DOTNET_ENVIRONMENT : github
77 ASPNETCORE_ENVIRONMENT : github
88 BUILD_PATH : " ${{github.workspace}}/artifacts"
9- COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
109
1110on :
1211 push :
2019 - master
2120 - develop
2221
22+ permissions :
23+ contents : read
24+
2325jobs :
2426 build :
2527
4648 run : dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings
4749
4850 - name : Report Coverage
49- if : success()
51+ if : success() && github.event_name != 'pull_request'
5052 continue-on-error : true
5153 uses : coverallsapp/github-action@v2
54+ env :
55+ COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
5256 with :
5357 file : " ${{github.workspace}}/test/*/TestResults/*/coverage.info"
5458 format : lcov
8084 needs : build
8185 if : success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
8286
87+ permissions :
88+ contents : read
89+ packages : write
90+
8391 steps :
8492 - name : Download Artifact
8593 uses : actions/download-artifact@v8
You can’t perform that action at this time.
0 commit comments