File tree 2 files changed +19
-2
lines changed
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:
106
106
run : make test-unit && make test-functional
107
107
108
108
# 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
109
110
- 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' }}
111
112
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
112
113
113
114
# See the reports at https://codecov.io/gh/yoanm/symfony-jsonrpc-http-server
@@ -172,6 +173,7 @@ jobs:
172
173
finalize-codacy-coverage-report :
173
174
runs-on : ubuntu-latest
174
175
name : Finalize Codacy coverage report
176
+ if : ${{ github.event.pull_request.head.repo.full_name == 'yoanm/symfony-jsonrpc-http-server' }}
175
177
needs : [ tests ]
176
178
steps :
177
179
- name : Setup cache
@@ -199,7 +201,7 @@ jobs:
199
201
env :
200
202
COMPOSER_OPTIONS : ' --optimize-autoloader --ignore-platform-req=php+'
201
203
continue-on-error : true
202
- needs : [ static-checks, finalize-codacy-coverage-report ]
204
+ needs : [ static-checks, tests ]
203
205
strategy :
204
206
fail-fast : false
205
207
max-parallel : 4
You can’t perform that action at this time.
0 commit comments