diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9282e82..7ee1e1c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,34 +1,38 @@ name: test -on: workflow_dispatch +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] env: - FOUNDRY_PROFILE: ci + FOUNDRY_PROFILE: ci jobs: - check: - strategy: - fail-fast: true + check: + strategy: + fail-fast: true - name: Foundry project - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive + name: Foundry project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1 - with: - version: nightly + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly - - name: Run Forge build - run: | - forge --version - forge build --sizes - id: build + - name: Run Forge build + run: | + forge --version + forge build --sizes + id: build - - name: Run Forge tests - run: | - forge test -vvv - id: test + - name: Run Forge tests + run: | + forge test -vvv + id: test