From 5b6dfca973a2b2c61cc329b2ad864f640a915a84 Mon Sep 17 00:00:00 2001 From: Douglas Wade Date: Sat, 12 Aug 2023 10:54:21 -0700 Subject: [PATCH] feat(#170): Run servers while running cypress tests on CI --- .github/workflows/cypress.yaml | 8 +++++++- packages/cypress/package.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index a5cbe05d..1e1ec294 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -22,4 +22,10 @@ jobs: - name: Cypress run uses: cypress-io/github-action@v5 with: - start: yarn run e2e + build: yarn run build + browser: chrome + start: yarn run serve + record: true + env: + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/packages/cypress/package.json b/packages/cypress/package.json index 4c8248e6..c9c71aac 100644 --- a/packages/cypress/package.json +++ b/packages/cypress/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "clean": "rimraf dist", - "e2e": "cypress run" + "e2e": "cypress run --browser=chrome" }, "private": true, "author": "Douglas Wade ",