From 724fef4ad835e40fc6d43534eeb94bdb986d0ca3 Mon Sep 17 00:00:00 2001 From: bryanlewicki Date: Mon, 20 May 2024 14:49:43 +0200 Subject: [PATCH] feat(test): test if both ci and prod run in workflows --- .github/workflows/cypress.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index ceea7e0..8f166bd 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -21,8 +21,22 @@ jobs: # Install npm dependencies, cache them correctly # and run all Cypress tests - - name: Cypress run + - name: Cypress run ci uses: cypress-io/github-action@v6 + env: + TESTENV: CI + with: + build: npm ci + start: npm start + browser: chrome + spec: cypress/e2e/uiTest.cy.js + record: false + + + - name: Cypress run prod + uses: cypress-io/github-action@v6 + env: + TESTENV: PROD with: build: npm ci start: npm start