Skip to content

Commit cc9336f

Browse files
committed
Added lightnet to github workflow
1 parent 3099b38 commit cc9336f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/pull-request-develop.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,20 @@ jobs:
115115
image: redis:6.2-alpine
116116
ports:
117117
- 6379:6379
118+
lighnet:
119+
image: o1labs/mina-local-network:compatible-latest-lightnet
120+
env:
121+
RUN_ARCHIVE_NODE: true
122+
LOG_LEVEL: 'INFO'
123+
PROOF_LEVEL: 'none'
124+
NETWORK_TYPE: 'single-node'
125+
ports:
126+
- 3085:3085
127+
- 8080:8080
128+
- 8181:8181
129+
# archive endpoints
130+
- 5432:5432
131+
- 8282:8282
118132

119133
steps:
120134
- uses: actions/checkout@v3
@@ -132,5 +146,12 @@ jobs:
132146
- name: "Migrate DB"
133147
run: npm run migrate
134148

149+
- name: "Wait for lightnet readiness"
150+
uses: o1-labs/wait-for-mina-network-action@v1
151+
with:
152+
mina-graphql-port: 3085
153+
max-attempts: 30
154+
polling-interval-ms: 5000
155+
135156
- name: "Integration tests"
136157
run: npm run test:integration

packages/sequencer/test-integration/Settlement-lightnet.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { settlementTestFn } from "../test/settlement/Settlement";
21
import { PrivateKey } from "o1js";
32
import { log } from "@proto-kit/common";
43

4+
import { settlementTestFn } from "../test/settlement/Settlement";
5+
56
console.log(PrivateKey.random().toPublicKey().toBase58());
67

78
log.setLevel("DEBUG");

0 commit comments

Comments
 (0)