From 52fe6c7e99c4bc367031b46160285c5a735dd021 Mon Sep 17 00:00:00 2001 From: "jtriley.eth" Date: Tue, 16 Apr 2024 11:19:29 -0700 Subject: [PATCH] ci --- .github/workflows/test.yml | 22 +++++++++++----------- foundry.toml | 3 +++ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9282e82..d567de1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,16 +1,10 @@ name: test -on: workflow_dispatch - -env: - FOUNDRY_PROFILE: ci +on: [push, pull_request] jobs: check: - strategy: - fail-fast: true - - name: Foundry project + name: Token Types runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -22,13 +16,19 @@ jobs: with: version: nightly - - name: Run Forge build + - name: Compile run: | forge --version - forge build --sizes + forge build id: build - - name: Run Forge tests + - name: Test run: | forge test -vvv id: test + + - name: Gas Snapshot + run: | + forge snapshot --isolate + env: + FOUNDRY_PROFILE: ci diff --git a/foundry.toml b/foundry.toml index 05eb3e6..b24b843 100644 --- a/foundry.toml +++ b/foundry.toml @@ -9,3 +9,6 @@ runs = 256 [fmt] bracket_spacing = true multiline_func_header = "params_first" + +[profile.ci.fuzz] +runs = 10_000