From e29d4f3ba895b223ef6364bcfbceb2f514d10e31 Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Wed, 4 Oct 2023 19:15:58 +1100 Subject: [PATCH] Handle pull requests from forks --- .github/workflows/continuous-integration.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 0368dd08e8..afa60dfe88 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -42,16 +42,25 @@ jobs: - run: yarn run lint - - uses: paambaati/codeclimate-action@v5.0.0 + - name: Run Coverage Report + if: github.event.pull_request.head.repo.fork == 'false' + uses: paambaati/codeclimate-action@v5.0.0 env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} with: coverageCommand: xvfb-run -a yarn run cover coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov - - run: yarn build-storybook + - name: Run Fork Coverage + if: github.event.pull_request.head.repo.fork == 'true' + run: xvfb-run -a yarn run cover + + - name: Build Storybook + if: github.event.pull_request.head.repo.fork == 'false' + run: yarn build-storybook - name: Publish to Chromatic + if: github.event.pull_request.head.repo.fork == 'false' uses: chromaui/action@v1 with: token: ${{ secrets.GITHUB_TOKEN }}