Skip to content

Commit 20cb318

Browse files
committed
fix: test workflow
1 parent 0044c7a commit 20cb318

File tree

1 file changed

+5
-34
lines changed

1 file changed

+5
-34
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,10 @@ on:
1010
branches:
1111
- main
1212

13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
1317
jobs:
1418
test:
15-
name: Foundry build n test
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v4
19-
with:
20-
submodules: recursive
21-
token: ${{ secrets.READ_ONLY_PAT }}
22-
23-
- uses: bgd-labs/action-rpc-env@main
24-
with:
25-
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
26-
27-
- name: Run Foundry setup
28-
uses: bgd-labs/github-workflows/.github/actions/foundry-setup@main
29-
30-
- name: Run Forge tests
31-
id: test
32-
uses: bgd-labs/github-workflows/.github/actions/foundry-test@main
33-
34-
- name: Run Gas report
35-
uses: bgd-labs/github-workflows/.github/actions/foundry-gas-report@main
36-
37-
- name: Run Lcov report
38-
uses: bgd-labs/github-workflows/.github/actions/foundry-lcov-report@main
39-
40-
- name: Store artifacts
41-
uses: bgd-labs/github-workflows/.github/actions/comment-artifact@main
42-
43-
# we let failing tests pass so we can log them in the comment, still we want the ci to fail
44-
- name: Post test
45-
if: ${{ steps.test.outputs.testStatus != 0 }}
46-
run: |
47-
echo "tests failed"
48-
exit 1
19+
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main

0 commit comments

Comments
 (0)