File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1+ # Ignore all test and documentation for archive
2+ /.github export-ignore
3+ /.gitattributes export-ignore
4+ /.gitignore export-ignore
5+ /.scrutinizer.yml export-ignore
6+ /.travis.yml export-ignore
7+ /behat.yml export-ignore
8+ /phpunit.xml.dist export-ignore
9+ /phpcs.xml.dist export-ignore
10+ /CODE_OF_CONDUCT.md export-ignore
11+ /CONTRIBUTING.md export-ignore
12+ /Makefile export-ignore
13+ /tests export-ignore
14+ /features export-ignore
15+ /docs export-ignore
Original file line number Diff line number Diff line change @@ -106,8 +106,9 @@ jobs:
106106 run : make test-unit && make test-functional
107107
108108 # Upload to codacy first as codecov action always remove coverage files despite move_coverage_to_trash at false
109+ # And only if it's not a PR from a fork => Can't work as codacy secret is not accessible in that context
109110 - name : Upload coverages to Codacy
110- if : ${{ env.COVERAGE_TYPE == 'xdebug' }}
111+ if : ${{ github.event.pull_request.head.repo.full_name == 'yoanm/symfony-jsonrpc-http-server' && env.COVERAGE_TYPE == 'xdebug' }}
111112 run : ${{ env.CODACY_BIN }} report -r build/coverage-phpunit/unit.clover -r build/coverage-behat/clover.xml -r build/coverage-phpunit/functional.clover -t ${{ secrets.CODACY_PROJECT_TOKEN }} --partial
112113
113114 # See the reports at https://codecov.io/gh/yoanm/symfony-jsonrpc-http-server
@@ -172,6 +173,7 @@ jobs:
172173 finalize-codacy-coverage-report :
173174 runs-on : ubuntu-latest
174175 name : Finalize Codacy coverage report
176+ if : ${{ github.event.pull_request.head.repo.full_name == 'yoanm/symfony-jsonrpc-http-server' }}
175177 needs : [ tests ]
176178 steps :
177179 - name : Setup cache
@@ -199,7 +201,7 @@ jobs:
199201 env :
200202 COMPOSER_OPTIONS : ' --optimize-autoloader --ignore-platform-req=php+'
201203 continue-on-error : true
202- needs : [ static-checks, finalize-codacy-coverage-report ]
204+ needs : [ static-checks, tests ]
203205 strategy :
204206 fail-fast : false
205207 max-parallel : 4
You can’t perform that action at this time.
0 commit comments