feat: CI improvments #7
Workflow file for this run
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
name: Foundry tests | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
env: | |
FOUNDRY_PROFILE: ci | |
SKIP_DEPLOY_CONFIRMATION: true | |
jobs: | |
run-foundry-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install Node 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Yarn | |
run: npm install -g yarn | |
- name: Install tools from asdf config | |
uses: ai/asdf-cache-action@v1 | |
- name: Install deps | |
run: yarn install && forge install | |
- name: Run the protocol | |
run: bash scripts/start-protocol.sh | |
- name: Call a Rpc to check | |
run: bash scripts/check_rpc.sh | |
- name: Run tests | |
run: forge test --no-match-test "(FFI|Fork)" --no-match-contract Fork | |
- name: Kill the anvil nodes | |
run: bash scripts/stop_protocol.sh |