File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11name : CI
22on :
3- pull_request_target :
3+ pull_request :
44 branches :
55 - main
66 push :
@@ -124,14 +124,18 @@ jobs:
124124 example/node_modules
125125 - name : Install dependencies
126126 run : yarn --immutable
127- - name : Test integration (with coverage)
127+ - name : Test integration (with coverage) and upload to CodeClimate
128+ if : ${{ github.ref == 'refs/heads/main' }}
128129 uses : paambaati/codeclimate-action@93c6213edc13fcb74a684a39a32956ebf417dd1c
129130 env :
130131 CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
131132 with :
132133 coverageCommand : yarn test:integration:ci
133134 coverageLocations : |
134135 ${{github.workspace}}/coverage/lcov.info:lcov
136+ - name : Test integration (with coverage)
137+ if : ${{ github.ref != 'refs/heads/main' }}
138+ run : yarn test:integration:ci
135139
136140 build-and-release :
137141 name : build and release
You can’t perform that action at this time.
0 commit comments