Skip to content

Commit

Permalink
chore: update circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Jun 26, 2023
1 parent b230af6 commit d9c5445
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 11 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ orbs:
rust: circleci/rust@1.6.0
jobs:
run_forge_tests:
working_directory: ~/zk-email-verify/packages/contracts
docker:
- image: ghcr.io/foundry-rs/foundry:latest
steps:
- checkout:
path: ~/zk-email-verify
- run:
shell: /bin/bash
command: |
apk add nodejs npm && npm install --global yarn
- node/install-packages:
pkg-manager: yarn
app-dir: ~/zk-email-verify
- run:
name: run foundry tests
working_directory: ~/zk-email-verify/packages/twitter-verifier-circuits
command: forge test --fork-url https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}

run_unit_and_e2e_tests:
working_directory: ~/zk-email-verify/packages/twitter-verifier-app
docker:
- image: cimg/node:16.19-browsers
steps:
Expand All @@ -26,21 +30,26 @@ jobs:
- run: node --version
- node/install-packages:
pkg-manager: yarn
app-dir: ~/zk-email-verify
- run:
command: yarn test
name: Run unit tests
working_directory: ~/zk-email-verify/packages/twitter-verifier-app
environment:
JEST_JUNIT_OUTPUT: reports/unit-test-results.xml
- run:
command: CI=false yarn run build
name: Build app
working_directory: ~/zk-email-verify/packages/twitter-verifier-app
- run:
command: yarn run start-e2e-test-server
name: Start test server
working_directory: ~/zk-email-verify/packages/twitter-verifier-app
background: true
- run:
command: yarn test:e2e-ui
name: Run e2e tests for UI
working_directory: ~/zk-email-verify/packages/twitter-verifier-app
environment:
JEST_JUNIT_OUTPUT: reports/e2e-ui-test-results.xml

Expand Down
4 changes: 0 additions & 4 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"name": "@zk-email/contracts",
"version": "1.0.0",
"scripts": {
"build": "forge compile",
"test": "forge test"
},
"dependencies": {
"@openzeppelin/contracts": "^4.9.1",
"@openzeppelin/contracts-upgradeable": "^4.9.1",
Expand Down

0 comments on commit d9c5445

Please sign in to comment.