Skip to content

Commit 1cef2c3

Browse files
committed
ci: refactor test suite workflow
Signed-off-by: Jakub Freisler <jakub@frsource.org>
1 parent 05232e0 commit 1cef2c3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22
on:
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

0 commit comments

Comments
 (0)