Skip to content

Commit 0066259

Browse files
committed
add hooks test to ci
1 parent b3661da commit 0066259

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/hook-tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Hook Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
env:
11+
MOONBEAM_RPC_URL: ${{secrets.MOONBEAM_RPC_URL}}
12+
FOUNDRY_PROFILE: ci
13+
14+
jobs:
15+
hook-tests:
16+
name: Hook Tests (Unit + Integration)
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
with:
23+
submodules: recursive
24+
25+
- name: Setup Environment
26+
uses: ./.github/actions
27+
28+
- name: Run Hook Tests
29+
uses: nick-fields/retry@v3
30+
with:
31+
polling_interval_seconds: 30
32+
retry_wait_seconds: 60
33+
timeout_minutes: 20
34+
max_attempts: 3
35+
command: time forge test --match-contract Hook --fork-url moonbeam -vvv

.github/workflows/moonbeam-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
retry_wait_seconds: 60
2929
timeout_minutes: 20
3030
max_attempts: 3
31-
command: time forge test --match-contract "MoonbeamTest|IntegrationTest" --fork-url moonbeam -vvv
31+
command: time forge test --match-contract MoonbeamTest --fork-url moonbeam -vvv

0 commit comments

Comments
 (0)