From f80852328416873df0a16dab1418fef134fe2948 Mon Sep 17 00:00:00 2001 From: z80 Date: Mon, 4 Nov 2024 00:11:12 -0500 Subject: [PATCH] run foundry tests in CI --- .github/workflows/test.yml | 26 ++++++++++++++++++++++---- foundry.toml | 1 + 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e158a44..d8c967b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,22 @@ jobs: with: submodules: recursive + - name: Install Racket + uses: Bogdanp/setup-racket@v1.11 + with: + architecture: 'x64' + distribution: 'full' + variant: 'CS' + version: 'stable' + + - run: raco pkg install --auto + + - name: Create Puff Executable + run: | + mkdir -p $GITHUB_WORKSPACE/bin + raco exe -o $GITHUB_WORKSPACE/bin/puffc main.rkt + echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH + - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 with: @@ -39,7 +55,9 @@ jobs: forge build --sizes id: build - # - name: Run Forge tests - # run: | - # forge test -vvv - # id: test + - name: Install + + - name: Run Forge tests + run: | + forge test -vvv + id: test diff --git a/foundry.toml b/foundry.toml index d8e84bf..d41ca80 100644 --- a/foundry.toml +++ b/foundry.toml @@ -3,5 +3,6 @@ src = "src" out = "out" libs = ["lib"] evm_version = "shanghai" +ffi = true # See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options