Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 13 additions & 32 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
name: test

on: workflow_dispatch

env:
FOUNDRY_PROFILE: ci
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
check:
strategy:
fail-fast: true

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: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
solidity-base:
uses: init4tech/actions/.github/workflows/solidity-base.yml@main
with:
gas-diff-tolerance: 2 # setting the gas diff tolerance to 2%
solidity-coverage:
uses: init4tech/actions/.github/workflows/solidity-coverage.yml@main