From f80173d84ba0571835432e8e062443752a06ca72 Mon Sep 17 00:00:00 2001 From: Demian Godon Date: Thu, 14 Mar 2024 20:13:34 -0700 Subject: [PATCH] config file updates --- .github/workflows/main.yml | 8 ++++++++ cypress.config.js | 1 + 2 files changed, 9 insertions(+) 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) {