Skip to content

Commit

Permalink
Merge pull request #11 from zkemail/issue-9/update-test
Browse files Browse the repository at this point in the history
Add download test
  • Loading branch information
saleel authored Feb 5, 2024
2 parents 0f0ec47 + 19efd41 commit 5b1a4c4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Proof of Twitter tests
on: [push]
env:
VITE_CONTRACT_ADDRESS: ${{ vars.VITE_CONTRACT_ADDRESS }}
VITE_CIRCUIT_ARTIFACTS_URL: ${{ vars.VITE_CIRCUIT_ARTIFACTS_URL }}
jobs:
run_circuit_tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,10 +61,11 @@ jobs:
working-directory: ./packages/contracts
run: yarn install --immutable
- name: Run Tests
run: forge test --root ./packages/contracts --fork-url https://eth-goerli.g.alchemy.com/v2/${{vars.ALCHEMY_API_KEY}}
run: forge test --root ./packages/contracts --fork-url https://eth-goerli.g.alchemy.com/v2/${{secrets.ALCHEMY_API_KEY}}

run_app_unit_and_e2e_tests:
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Set Node.js 16.x
Expand Down
1 change: 1 addition & 0 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"test": "jest --runInBand --testPathIgnorePatterns='e2e' --reporters=default --reporters=jest-junit",
"start-e2e-test-server": "yarn serve",
"test:e2e-ui": "CI=true jest ./tests/e2e-ui*.test.*",
"test:e2e-dl": "CI=true jest ./tests/e2e-dl*.test.*",
"test:full-e2e": "bash scripts/test-e2e.sh",
"test:e2e-zkp": "CI=true jest ./tests/e2e-dl-zkp.test.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/app/scripts/test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

# Execute E2E test
# This file is required in the CI
yarn start-e2e-test-server & yarn test:e2e-ui
yarn start-e2e-test-server & (yarn test:e2e-zkp && yarn test:e2e-ui)
2 changes: 2 additions & 0 deletions packages/app/tests/e2e-dl-zkp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ describe("App.js", () => {
beforeAll(async () => {
browser = await puppeteer.launch({
// headless: true,
args: ['--no-sandbox'],
executablePath: process.env.PUPPETEER_EXEC_PATH,
headless: false,
slowMo: 100
});
Expand Down

0 comments on commit 5b1a4c4

Please sign in to comment.