test: record only if key is present (#38748)
This commit is contained in:
committed by
GitHub
parent
dab119f2be
commit
65416fd351
8
.github/workflows/cypress.yml
vendored
8
.github/workflows/cypress.yml
vendored
@ -11,6 +11,9 @@ on:
|
|||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
cypress-run:
|
cypress-run:
|
||||||
|
env:
|
||||||
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
name: Cypress run
|
name: Cypress run
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
@ -28,11 +31,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Cypress run
|
- name: Cypress run
|
||||||
uses: cypress-io/github-action@v1
|
uses: cypress-io/github-action@v1
|
||||||
env:
|
|
||||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
record: true
|
record: ${{ env.CYPRESS_RECORD_KEY != 0 }}
|
||||||
build: npm run build
|
build: npm run build
|
||||||
# this should mirror the production build, but for now we're just using the dev
|
# this should mirror the production build, but for now we're just using the dev
|
||||||
# server and gatsby serve instead (the npm script serve:client needs updating!)
|
# server and gatsby serve instead (the npm script serve:client needs updating!)
|
||||||
|
Reference in New Issue
Block a user