Skip to content

Commit f6d4aab

Browse files
authored
Merge pull request #9 from init4tech/swanny/update-ci
feat: using the standard solidity workflow
2 parents e36436c + 619750d commit f6d4aab

File tree

1 file changed

+13
-32
lines changed

1 file changed

+13
-32
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
1-
name: test
2-
3-
on: workflow_dispatch
4-
5-
env:
6-
FOUNDRY_PROFILE: ci
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
78

89
jobs:
9-
check:
10-
strategy:
11-
fail-fast: true
12-
13-
name: Foundry project
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
with:
18-
submodules: recursive
19-
20-
- name: Install Foundry
21-
uses: foundry-rs/foundry-toolchain@v1
22-
with:
23-
version: nightly
24-
25-
- name: Run Forge build
26-
run: |
27-
forge --version
28-
forge build --sizes
29-
id: build
30-
31-
- name: Run Forge tests
32-
run: |
33-
forge test -vvv
34-
id: test
10+
solidity-base:
11+
uses: init4tech/actions/.github/workflows/solidity-base.yml@main
12+
with:
13+
gas-diff-tolerance: 2 # setting the gas diff tolerance to 2%
14+
solidity-coverage:
15+
uses: init4tech/actions/.github/workflows/solidity-coverage.yml@main

0 commit comments

Comments
 (0)