Skip to content

Commit

Permalink
Add e2e to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
magdapoppins committed Apr 4, 2022
1 parent a50462c commit 42d62db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Expand Up @@ -10,7 +10,8 @@ const customJestConfig = {
moduleDirectories: ["node_modules", "<rootDir>/"],
testEnvironment: "jest-environment-jsdom",
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
modulePathIgnorePatterns: ["<rootDir>/tools"]
modulePathIgnorePatterns: ["<rootDir>/tools"],
testPathIgnorePatterns: ["<rootDir>/cypress/"]
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
Expand Down

0 comments on commit 42d62db

Please sign in to comment.