Skip to content

Merge pull request #21 from iotexproject/feat/time_batch_claim_vault #144

Merge pull request #21 from iotexproject/feat/time_batch_claim_vault

Merge pull request #21 from iotexproject/feat/time_batch_claim_vault #144

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
hardhat-tests:
name: Hardhat Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Compile
run: yarn compile
- name: Run unit tests
run: yarn test
forge-tests:
strategy:
fail-fast: true
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Run Forge tests
run: |
forge test -vvv
id: test