-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.08 KB
/
ci.yml
File metadata and controls
47 lines (38 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
contracts:
name: forge build + test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Install forge dependencies
run: |
# Repo references openzeppelin-contracts + forge-std but lib/ is git-ignored.
# Install them via forge install.
forge install OpenZeppelin/openzeppelin-contracts foundry-rs/forge-std
- name: forge build
run: forge build --sizes
- name: forge test
run: forge test -vv
- name: Setup Node 20 (for sentrix RPC scripts)
uses: actions/setup-node@v6
with:
node-version: '20'
- name: viem typecheck (script/)
run: |
if [ -f scripts/package.json ]; then
cd scripts && npm ci && npx tsc --noEmit
else
echo "no scripts/ npm package — skipping"
fi