-
Notifications
You must be signed in to change notification settings - Fork 90
58 lines (49 loc) · 1.77 KB
/
regression-tests.yml
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
name: Regression Tests
on:
pull_request:
types: [opened, synchronize] # Trigger on new PR and existing with new commits
branches:
- main
jobs:
deploy_devnet:
strategy:
matrix:
go-version: [ 1.22.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
env:
GOARCH: ${{ matrix.goarch }}
- name: Checkout cdk-data-availability
uses: actions/checkout@v4
with:
path: cdk-data-availability
- name: Checkout kurtosis-cdk
uses: actions/checkout@v4
with:
repository: 0xPolygon/kurtosis-cdk
ref: "v0.2.22"
path: kurtosis-cdk
- name: Install Kurtosis CDK tools
uses: ./kurtosis-cdk/.github/actions/setup-kurtosis-cdk
- name: Build docker image
working-directory: ./cdk-data-availability
run: docker build -t cdk-data-availability:local --file Dockerfile .
- name: Deploy Kurtosis CDK package
working-directory: ./kurtosis-cdk
run: >
kurtosis run --enclave cdk . '{"args": {"zkevm_da_image": "cdk-data-availability:local", "consensus_contract_type": "cdk-validium"}}'
- name: Set executable permissions for the script
working-directory: ./kurtosis-cdk
run: sudo chmod +x .github/scripts/monitor-verified-batches.sh
- name: Monitor verified batches
working-directory: ./kurtosis-cdk
shell: bash
run: |
rpc_url="$(kurtosis port print cdk cdk-erigon-rpc-001 rpc)"
echo "Using RPC URL: $rpc_url"
.github/scripts/monitor-verified-batches.sh --enclave cdk --rpc-url "$rpc_url" --target 19 --timeout 600