Skip to content

Commit

Permalink
chore(ci): single cypress run on fork PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Sep 5, 2022
1 parent ef5bb3e commit f52e791
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4]
containers: ${{ fromJSON(github.repository_owner == 'vuetifyjs' && '[1, 2, 3, 4]' || '[1]') }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
Expand All @@ -97,11 +97,14 @@ jobs:

- run: yarn --frozen-lockfile --non-interactive
- run: yarn cy:run --record --parallel --ci-build-id $GITHUB_RUN_ID
if: ${{ !startswith(github.ref, 'refs/tags/v') }}
if: ${{ !startswith(github.ref, 'refs/tags/v') && github.repository_owner == 'vuetifyjs' }}
working-directory: ./packages/vuetify
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- run: yarn cy:run
if: ${{ !startswith(github.ref, 'refs/tags/v') && github.repository_owner != 'vuetifyjs' }}
working-directory: ./packages/vuetify
- uses: actions/upload-artifact@v2
if: failure()
with:
Expand Down

0 comments on commit f52e791

Please sign in to comment.