From 850503c748402dd170ab1bb553ead2fea6541e8a Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Tue, 16 Apr 2024 10:49:05 -0700 Subject: [PATCH 1/2] Update foundry.toml - fix contract offerers action --- foundry.toml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/foundry.toml b/foundry.toml index 47cb902c1..6fd61494d 100644 --- a/foundry.toml +++ b/foundry.toml @@ -73,10 +73,7 @@ optimizer = false test = 'test/foundry/new' [profile.offerers] -src='offerers' -test='offerers' -out = 'offerers-out' -script = 'offerers' +test='test/foundry/offerers' [fmt] line_length = 80 From 7aa0776569ce8273263a2f805aa1982474739eb4 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Tue, 16 Apr 2024 10:52:46 -0700 Subject: [PATCH 2/2] Update test.yml --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0aea0264a..b47597b37 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -158,6 +158,12 @@ jobs: - name: Install forge dependencies run: forge install + - name: Precompile reference using 0.8.24 and via-ir=false + run: FOUNDRY_PROFILE=reference forge build + + - name: Precompile optimized using 0.8.24 and via-ir=true + run: FOUNDRY_PROFILE=optimized forge build + - name: Run tests run: FOUNDRY_PROFILE=offerers forge test -vvv @@ -234,4 +240,4 @@ jobs: - uses: codecov/codecov-action@v3 with: files: ./coverage/lcov.info - flags: reference \ No newline at end of file + flags: reference