From 1dabaf84054f078329442c67b2e6e4d554c3bd33 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Thu, 30 Apr 2020 15:03:00 +0530 Subject: [PATCH] feat: enable github integration (#38678) Co-Authored-By: Oliver Eyton-Williams --- .github/workflows/cypress.yml | 7 +++++++ cypress.json | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 667e17e1a5..401e60ab7f 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -6,6 +6,9 @@ on: - production-** # This will let us work on cypress config itself - cypress-** + pull_request: + branches: + - master jobs: cypress-run: name: Cypress run @@ -25,7 +28,11 @@ jobs: - name: Cypress run uses: cypress-io/github-action@v1 + env: + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: + record: true build: npm run build # this should mirror the production build, but for now we're just using the dev # server and gatsby serve instead (the npm script serve:client needs updating!) diff --git a/cypress.json b/cypress.json index 0967ef424b..68434829e7 100644 --- a/cypress.json +++ b/cypress.json @@ -1 +1,3 @@ -{} +{ + "projectId": "ke77ns" +}