From 592f9bde92c755f1a1456db1c6e3c3f5bc0d78f0 Mon Sep 17 00:00:00 2001 From: Ryan Sauge Date: Tue, 3 Sep 2024 15:04:34 +0200 Subject: [PATCH] Add workflow --- .github/workflows/test.yml | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9282e82..ad34e60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,34 +1,28 @@ -name: test +name: Foundry CI -on: workflow_dispatch - -env: - FOUNDRY_PROFILE: ci +on: + push: + branches: [dev, master, main] + pull_request: + branches: [dev, master, main] jobs: - check: - strategy: - fail-fast: true - - name: Foundry project + build: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - with: - submodules: recursive + - uses: actions/checkout@v3 - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 with: version: nightly + - name: Run Forge install + run: forge install + - name: Run Forge build - run: | - forge --version - forge build --sizes - id: build + run: forge build --sizes - - name: Run Forge tests - run: | - forge test -vvv - id: test + - name: Run Forge tests + run: forge test -vvv --gas-report \ No newline at end of file