Skip to content

Commit

Permalink
ci (#65)
Browse files Browse the repository at this point in the history
* i

* ci

* ci

* ci

* ci

---------

Co-authored-by: Gianmarco Fraccaroli <>
  • Loading branch information
Fraccaman committed Oct 17, 2023
1 parent 3b6c701 commit cd24cf8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: test
name: Build and Test

on: workflow_dispatch
on:
pull_request:
branches:
- main
push:
branches:
- main

env:
FOUNDRY_PROFILE: ci
Expand All @@ -14,21 +20,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install just
run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

just build
- name: Run Forge tests
run: |
forge test -vvv --via-ir
id: test
just test
4 changes: 2 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ auto_detect_solc = false
bytecode_hash = "none"
cbor_metadata = false
evm_version = "shanghai"
fuzz = {runs = 20}
gas_reports = ["*"]
fuzz = {runs = 100}
gas_reports = ["Bridge", "Proxy", "Vault"]
libs = ["lib"]
optimizer = true
optimizer_runs = 10_000
Expand Down
5 changes: 4 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ anvil-allow TRANSFER_AMOUNT="1000":
--sender {{DEFAULT-SIGNER}}

build:
@forge b --via-ir
@forge b --via-ir --sizes

test:
@forge test -vvv --via-ir --ffi --gas-report

0 comments on commit cd24cf8

Please sign in to comment.