-
Notifications
You must be signed in to change notification settings - Fork 22
70 lines (67 loc) · 2.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
on: [push]
jobs:
run_circuit_tests:
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Circom
id: Circom
uses: actions/cache@v3
with:
path: ~/.cargo/bin/circom
key: circom
- name: Install Yarn dependencies
working-directory: ./packages/circuits
run: yarn install --immutable
- name: Run Tests
working-directory: ./packages/circuits
run: yarn test
# 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