diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b237da5..976236f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,3 +12,11 @@ jobs: start: npm start # quote the url to be safe against YML parsing surprises wait-on: "http://localhost:3001" + record: true + env: + # pass GitHub token to allow accurately detecting a build vs a re-run build + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # pass the Cypress Cloud record key as an environment variable + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + # pass the project ID from the secrets through environment variable + CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }} diff --git a/cypress.config.js b/cypress.config.js index 6cab291..31362e1 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -1,6 +1,7 @@ const { defineConfig } = require("cypress"); module.exports = defineConfig({ + projectId: 'agxbnk', e2e: { baseUrl: "http://localhost:3001", setupNodeEvents(on, config) {