-
Notifications
You must be signed in to change notification settings - Fork 13
65 lines (55 loc) · 1.47 KB
/
Copy pathmigration-tests.yml
File metadata and controls
65 lines (55 loc) · 1.47 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Migration Tests
# The PEN -> Base migration stack lives outside the Rust workspace: the
# Foundry contracts and the three TypeScript daemons. `test-code.yml` covers
# the pallet through `cargo test`; this job covers everything else, so a
# green check on the PR means the suites the review log cites actually ran.
on:
pull_request:
paths:
- "contracts/**"
- "attestor/**"
- "monitor/**"
- "releaser/**"
- ".github/workflows/migration-tests.yml"
push:
branches:
- main
jobs:
contracts:
name: Foundry (contracts)
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Build
run: forge build --sizes
- name: Test
run: forge test -vvv
daemons:
name: ${{ matrix.package }} (node)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package: [attestor, monitor, releaser]
defaults:
run:
working-directory: ${{ matrix.package }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: ${{ matrix.package }}/package-lock.json
- name: Install
run: npm ci
- name: Typecheck and test
run: npm test