Skip to content

chore: update test script #10

chore: update test script

chore: update test script #10

Workflow file for this run

on: [push]
jobs:
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