Skip to content

Commit 2e06265

Browse files
Filipp MakarovFilipp Makarov
authored andcommitted
chore: improve workflow
1 parent 7b34035 commit 2e06265

1 file changed

Lines changed: 24 additions & 13 deletions

File tree

.github/workflows/foundry-test.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,47 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14-
14+
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
18-
with:
19-
# Fetch full history for better diff analysis
20-
fetch-depth: 0
21-
18+
2219
- name: Install Foundry
2320
uses: foundry-rs/foundry-toolchain@v1
2421
with:
2522
version: stable
26-
23+
2724
- name: Setup pnpm
28-
uses: pnpm/action-setup@v3
25+
uses: pnpm/action-setup@v4
2926
with:
3027
version: 10.17.1
31-
28+
3229
- name: Setup Node.js
3330
uses: actions/setup-node@v4
3431
with:
3532
node-version: '22'
36-
33+
cache: 'pnpm'
34+
3735
- name: Install dependencies
3836
run: pnpm install --frozen-lockfile
39-
40-
- name: Run Forge tests
41-
run: pnpm test
37+
38+
- name: Build
39+
run: forge build
40+
env:
41+
FOUNDRY_PROFILE: ci
42+
43+
- name: Run node-paymaster tests
44+
run: forge test --match-path 'test/unit-and-e2e/node-paymaster/**' --isolate
45+
env:
46+
FOUNDRY_PROFILE: ci
47+
RPC_84532: https://sepolia.base.org
48+
RPC_11155111_TEST: https://0xrpc.io/sep
49+
TESTNET_PRIVATE_KEY: ${{ secrets.TESTNET_PRIVATE_KEY }}
50+
51+
- name: Run all other tests
52+
run: forge test --no-match-path 'test/unit-and-e2e/node-paymaster/**'
4253
env:
4354
FOUNDRY_PROFILE: ci
4455
RPC_84532: https://sepolia.base.org
4556
RPC_11155111_TEST: https://0xrpc.io/sep
46-
TESTNET_PRIVATE_KEY: ${{ secrets.TESTNET_PRIVATE_KEY }}
57+
TESTNET_PRIVATE_KEY: ${{ secrets.TESTNET_PRIVATE_KEY }}

0 commit comments

Comments
 (0)