Skip to content

Commit

Permalink
Handle pull requests from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Oct 4, 2023
1 parent 205a75f commit e29d4f3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,25 @@ jobs:

- run: yarn run lint

- uses: paambaati/[email protected]
- name: Run Coverage Report
if: github.event.pull_request.head.repo.fork == 'false'
uses: paambaati/[email protected]
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 }}
Expand Down

0 comments on commit e29d4f3

Please sign in to comment.