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 1
1
name : CI
2
2
on :
3
- pull_request_target :
3
+ pull_request :
4
4
branches :
5
5
- main
6
6
push :
@@ -124,14 +124,18 @@ jobs:
124
124
example/node_modules
125
125
- name : Install dependencies
126
126
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' }}
128
129
uses : paambaati/codeclimate-action@93c6213edc13fcb74a684a39a32956ebf417dd1c
129
130
env :
130
131
CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
131
132
with :
132
133
coverageCommand : yarn test:integration:ci
133
134
coverageLocations : |
134
135
${{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
135
139
136
140
build-and-release :
137
141
name : build and release
You can’t perform that action at this time.
0 commit comments