Skip to content

Script to create test data (#320) #4

Script to create test data (#320)

Script to create test data (#320) #4

Workflow file for this run

name: contracts forge - fmt -> build -> test
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
tests:
concurrency: ci-forge-${{ github.head_ref || github.run_id }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 1
- name: Setup node env
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1.0.9
with:
version: nightly
- name: Run Forge Format
run: |
forge fmt --check
id: fmt
- name: Run Forge build
run: |
forge compile
id: build
- name: Run Forge test
env:
MAINNET_RPC_URL: "https://eth-mainnet.g.alchemy.com/v2/${{ secrets.ALCHEMY_API_KEY }}"
run: |
forge test --no-match-contract "Lockup"
id: test