Skip to content

fix tests

fix tests #270

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
FOUNDRY_PROFILE: ci
jobs:
cairo:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Scarb
uses: software-mansion/setup-scarb@v1
- name: Test the code
run: |
scarb test
solidity:
strategy:
fail-fast: true
name: Foundry project
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: Show Forge version
run: |
forge --version
- name: Run Forge fmt
working-directory: l1_proxy
run: |
forge fmt --check
id: fmt
- name: Run Forge build
working-directory: l1_proxy
run: |
forge build --sizes
id: build
- name: Run Forge tests
working-directory: l1_proxy
run: |
forge test -vvv
id: test