forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 41
69 lines (55 loc) · 1.96 KB
/
devtooling2.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
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches:
- feature/gha_tests
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
jobs:
# kurtosis-cdk:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# da-mode: [ "rollup", "cdk-validium" ]
# outputs:
# l2_rpc_url: ${{ steps.env.outputs.L2_RPC_URL }}
# l2_prv_key: ${{ steps.env.outputs.L2_PRV_KEY }}
# steps:
# - name: Checkout cdk-erigon
# uses: actions/checkout@v4
# - name: Setup kurtosis
# uses: ./.github/actions/setup-kurtosis
# - name: Set up envs
# id: env
# run: |
# echo "L2_PRV_KEY=0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625" >> $GITHUB_OUTPUT
# echo "L2_RPC_URL=$(kurtosis port print cdk-v1 cdk-erigon-rpc-001 rpc)" >> $GITHUB_OUTPUT
tests:
runs-on: ubuntu-latest
# container: xavierromero/devtooling:latest
steps:
- name: Checkout cdk-erigon
uses: actions/checkout@v4
- name: Setup kurtosis
uses: ./.github/actions/setup-kurtosis
- name: Set up envs
run: |
echo "L2_PRV_KEY=0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625" >> $GITHUB_ENV
echo "L2_RPC_URL=$(kurtosis port print cdk-v1 cdk-erigon-rpc-001 rpc)" >> $GITHUB_ENV
- name: echo
run: |
echo "L2_RPC_URL is $L2_RPC_URL"
echo "L2_PRV_KEY is $L2_PRV_KEY"
- name: Entrypoint
run: docker run --name devtooling --network host --detach --rm -e L2_RPC_URL=$L2_RPC_URL -e L2_PRV_KEY=$L2_PRV_KEY xavierromero/devtooling:latest
- name: Run tests
run: |
docker exec devtooling x cast bn
# - name: Boundaries
# run: /usr/bin/x scripted -f /files/scripted/boundaries.json
# - name: zkEVM Test Vectors
# run: /usr/bin/x run-zktv