Skip to content

Commit 8b9f5c8

Browse files
critesjoshclaude
andcommitted
Restore testnet workflow, config, and deploy script for testnet PR
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e3b822c commit 8b9f5c8

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.github/workflows/testnet.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Testnet Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- testnet
7+
pull_request:
8+
branches:
9+
- testnet
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: testnet-deploy
14+
cancel-in-progress: true
15+
16+
jobs:
17+
testnet-deploy-account:
18+
name: Deploy Account to Testnet
19+
runs-on: ubuntu-latest
20+
env:
21+
AZTEC_ENV: testnet
22+
L1_PRIVATE_KEY: ${{ secrets.L1_PRIVATE_KEY }}
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v5
27+
28+
- name: Read Aztec version from config
29+
run: echo "AZTEC_VERSION=$(jq -r '.settings.version' config/testnet.json)" >> $GITHUB_ENV
30+
31+
- name: Set up Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: "24"
35+
cache: "yarn"
36+
37+
- name: Install project dependencies
38+
run: yarn
39+
40+
- name: Deploy account to testnet
41+
run: yarn deploy-account::testnet

config/testnet.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "testnet",
3+
"environment": "testnet",
4+
"network": {
5+
"nodeUrl": "https://rpc.testnet.aztec-labs.com",
6+
"l1RpcUrl": "https://ethereum-sepolia-rpc.publicnode.com",
7+
"l1ChainId": 11155111
8+
},
9+
"settings": {
10+
"skipLocalNetwork": true,
11+
"version": "4.2.0-aztecnr-rc.2"
12+
},
13+
"timeouts": {
14+
"deployTimeout": 1200000,
15+
"txTimeout": 180000,
16+
"waitTimeout": 60000
17+
}
18+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"compile": "aztec compile",
1616
"deploy": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/deploy_contract.ts",
1717
"deploy-account": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/deploy_account.ts",
18+
"deploy-account::testnet": "NODE_NO_WARNINGS=1 AZTEC_ENV=testnet node --loader ts-node/esm scripts/deploy_account.ts",
1819
"interaction-existing-contract": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/interaction_existing_contract.ts",
1920
"multiple-wallet": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/multiple_wallet.ts",
2021
"get-block": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/get_block.ts",

0 commit comments

Comments
 (0)