Repository navigation
67 lines (63 loc) · 1.98 KB
/
Copy pathtest.yml
File metadata and controls
67 lines (63 loc) · 1.98 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
66
67
name: Test
on:
push:
branches: [master]
pull_request:
jobs:
client:
name: client
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: lts/*
check-latest: true
cache: npm
cache-dependency-path: client/package-lock.json
- run: npm ci
- run: npm run build
- run: npm test
server:
name: server
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: lts/*
check-latest: true
cache: npm
cache-dependency-path: server/package-lock.json
- run: npm ci
# The server's prebuild copies shared/* and indexer/src/schema-defs.ts
# into server/src/ at build time. Those copies are gitignored.
- run: npm run build
- run: npm test
indexer:
name: indexer
runs-on: ubuntu-latest
defaults:
run:
working-directory: indexer
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: lts/*
check-latest: true
cache: npm
cache-dependency-path: indexer/package-lock.json
- run: npm ci
# Tests load the actual config under both networks and strict-mode failures.
- run: npm test
# Typecheck runs mainnet codegen to materialize ponder-env.d.ts, then
# tsc --noEmit. No DB or RPC is needed; codegen accepts dummy values.
- run: npm run codegen:calibnet
- run: npm run typecheck