Merge pull request #56 from BKWLD/detect-src-alt #161
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cypress Tests | |
on: [push] | |
# This configuration is largely from the Cypress dashboard. | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dir: | |
- packages/react | |
- packages/contentful | |
- packages/next | |
- packages/sanity-next | |
steps: | |
- name: Install | |
uses: bkwld/cloak-actions/install@v2 | |
- name: Cypress run | |
uses: cypress-io/github-action@v5 | |
with: | |
install: false | |
working-directory: ${{ matrix.dir }} | |
component: true | |
record: true | |
env: | |
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NEXT_PUBLIC_SANITY_DATASET: ${{ secrets.NEXT_PUBLIC_SANITY_DATASET }} | |
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_SANITY_PROJECT_ID }} |