-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
478 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,87 @@ | ||
on: [push] | ||
jobs: | ||
run_contract_tests: | ||
run_circuit_tests: | ||
runs-on: ubuntu-latest | ||
environment: development | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set Node.js 16.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --yes \ | ||
build-essential \ | ||
libgmp-dev \ | ||
libsodium-dev \ | ||
nasm \ | ||
nlohmann-json3-dev | ||
- name: Set Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
node-version: 18 | ||
|
||
- name: Setup Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Download Circom Binary v2.1.5 | ||
run: | | ||
wget -qO /home/runner/work/circom https://github.com/iden3/circom/releases/download/v2.1.5/circom-linux-amd64 | ||
chmod +x /home/runner/work/circom | ||
sudo mv /home/runner/work/circom /bin/circom | ||
- name: Print Circom version | ||
run: circom --version | ||
|
||
- name: Install Yarn dependencies | ||
working-directory: ./packages/contracts | ||
working-directory: ./packages/circuits | ||
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_app_unit_and_e2e_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'yarn' | ||
env: | ||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true' | ||
- name: Install Yarn dependencies | ||
working-directory: ./packages/app | ||
run: yarn install | ||
- name: Run test | ||
working-directory: ./packages/app | ||
working-directory: ./packages/circuits | ||
run: yarn test | ||
- name: Run build | ||
working-directory: ./packages/app | ||
run: yarn build | ||
- name: E2E Test Code | ||
uses: mujo-code/[email protected] | ||
env: | ||
CI: "true" | ||
with: | ||
args: yarn workspace @zk-email/twitter-verifier-app test:full-e2e | ||
|
||
# run_contract_tests: | ||
# runs-on: ubuntu-latest | ||
# environment: development | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Set Node.js 16.x | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16 | ||
# - name: Install Foundry | ||
# uses: foundry-rs/foundry-toolchain@v1 | ||
# - name: Install Yarn dependencies | ||
# 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_app_unit_and_e2e_tests: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Set Node.js 16.x | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16 | ||
# cache: 'yarn' | ||
# env: | ||
# PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true' | ||
# - name: Install Yarn dependencies | ||
# working-directory: ./packages/app | ||
# run: yarn install | ||
# - name: Run test | ||
# working-directory: ./packages/app | ||
# run: yarn test | ||
# - name: Run build | ||
# working-directory: ./packages/app | ||
# run: yarn build | ||
# - name: E2E Test Code | ||
# uses: mujo-code/[email protected] | ||
# env: | ||
# CI: "true" | ||
# with: | ||
# args: yarn workspace @zk-email/twitter-verifier-app test:full-e2e | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.