-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 944 Bytes
/
cypress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 }}