chore(deps): update dependency @netlify/build to ^29.47.5 #582
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: Run e2e (default demo) | |
on: | |
pull_request: | |
types: [opened, labeled, unlabeled, synchronize] | |
push: | |
branches: | |
- main | |
paths: | |
- 'demos/default/**/*.{ts,tsx}' | |
- 'cypress/e2e/**/*.{ts}' | |
- 'plugin/src/**/*.{ts}' | |
jobs: | |
cypress: | |
name: Cypress | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# Can increase the containers as we add more tests | |
containers: [1] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Generate Github token | |
uses: navikt/github-app-token-generator@v1 | |
id: get-token | |
with: | |
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }} | |
app-id: ${{ secrets.TOKENS_APP_ID }} | |
- name: Checkout @netlify/wait-for-deploy-action | |
uses: actions/checkout@v3 | |
with: | |
repository: netlify/wait-for-deploy-action | |
token: ${{ steps.get-token.outputs.token }} | |
path: ./.github/actions/wait-for-netlify-deploy | |
- name: Wait for Netlify Deploy | |
id: deploy | |
uses: ./.github/actions/wait-for-netlify-deploy | |
with: | |
site-name: gatsby-runner-hp | |
timeout: 300 | |
- name: Deploy successful | |
if: ${{ steps.deploy.outputs.origin-url }} | |
run: echo ${{ steps.deploy.outputs.origin-url }} | |
- name: Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- run: yarn | |
- name: Cypress run | |
if: ${{ steps.deploy.outputs.origin-url }} | |
id: cypress | |
uses: cypress-io/github-action@v2 | |
with: | |
browser: chrome | |
headless: true | |
record: true | |
parallel: true | |
config-file: cypress/config/ci.config.ts | |
group: 'Gatsby Runner - Demo' | |
spec: cypress/e2e/* | |
env: | |
DEBUG: '@cypress/github-action' | |
CYPRESS_baseUrl: ${{ steps.deploy.outputs.origin-url }} | |
CYPRESS_NETLIFY_CONTEXT: ${{ steps.deploy.outputs.context }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CYPRESS_RECORD_KEY: ${{ secrets.DEFAULT_CYPRESS_RECORD_KEY }} |