Skip to content

chore(deps): update dependency @netlify/edge-functions to ^2.8.1 #4536

chore(deps): update dependency @netlify/edge-functions to ^2.8.1

chore(deps): update dependency @netlify/edge-functions to ^2.8.1 #4536

name: Run e2e (Nx monorepo)
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
paths:
- 'demos/nx-next-monorepo-demo/**/*.{js,jsx,ts,tsx}'
- 'cypress/e2e/nx/**/*.{ts,js}'
- 'packages/*/src/**/*.{ts,js}'
jobs:
cypress:
name: Cypress
runs-on: ubuntu-latest
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: netlify-plugin-nextjs-nx-monorepo-demo
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'
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: npm install
- name: Cypress run
if: ${{ steps.deploy.outputs.origin-url }}
id: cypress
uses: cypress-io/github-action@v5
with:
browser: chrome
record: true
config-file: cypress/config/nx-demo.config.ts
group: 'Next Runtime - Demo NX'
spec: cypress/e2e/nx/*
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.NX_CYPRESS_RECORD_KEY }}