Skip to content

Commit

Permalink
feat: using the standard solidity workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rswanson committed Apr 23, 2024
1 parent 26dc704 commit 619750d
Showing 1 changed file with 13 additions and 32 deletions.
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

0 comments on commit 619750d

Please sign in to comment.