From 42d62dbe14f9963540e87eb835104bc622fcb0ea Mon Sep 17 00:00:00 2001 From: magdapoppins Date: Fri, 1 Apr 2022 12:47:47 +0300 Subject: [PATCH] Add e2e to CI workflow --- .github/workflows/ci.yml | 12 ++++++++++++ jest.config.js | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fc52d7..bb9fcf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,18 @@ jobs: flags: db-unittests directory: ./tools/firebase + e2e: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Cypress run + uses: cypress-io/github-action@v2 + with: + build: yarn build + start: yarn start + wait-on: http://localhost:3000 + export-test: runs-on: ubuntu-latest steps: diff --git a/jest.config.js b/jest.config.js index e2383ed..cd486f3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,7 +10,8 @@ const customJestConfig = { moduleDirectories: ["node_modules", "/"], testEnvironment: "jest-environment-jsdom", setupFilesAfterEnv: ["/jest.setup.ts"], - modulePathIgnorePatterns: ["/tools"] + modulePathIgnorePatterns: ["/tools"], + testPathIgnorePatterns: ["/cypress/"] }; // createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async