diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d99fbc4f..5604b0a9 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -98,3 +98,49 @@ jobs: - name: Validate URLs run: awesome_bot ./*.md src/**/*.sol --allow-dupe --allow-redirect --request-delay 0.4 --white-list mainnet.infura.io/v3,localhost + + tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + node_version: + - 20 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - 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 --ffi + id: t + + solhint: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + node_version: + - 20 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run solhint + run: | + npx solhint 'src/**/*.sol'