Skip to content

Commit e582750

Browse files
committed
Run existing-net-test in a Kubernetes local network
1 parent 0d3829b commit e582750

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/rust.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,33 @@ jobs:
6969
run: |
7070
cargo test -p linera-service existing_net_grpc --features existing-net
7171
72+
existing-kubernetes-net-test:
73+
runs-on: ubuntu-latest-16-cores
74+
timeout-minutes: 40
75+
76+
steps:
77+
- uses: actions/checkout@v3
78+
- uses: actions-rust-lang/setup-rust-toolchain@v1
79+
- name: Install Protoc
80+
uses: arduino/setup-protoc@v1
81+
with:
82+
repo-token: ${{ secrets.GITHUB_TOKEN }}
83+
- name: Run the validators
84+
run: |
85+
cargo build --release --bin linera --bin linera-proxy --bin linera-server --features kubernetes,scylladb,metrics
86+
strip target/release/linera
87+
strip target/release/linera-proxy
88+
strip target/release/linera-server
89+
cargo run --features kubernetes --release --bin linera -- net up --kubernetes --binaries --policy-config devnet --validators 4 --shards 4 &
90+
- name: Create two epochs and run the faucet
91+
run: |
92+
cargo run --release --bin linera -- resource-control-policy --block 0.0000001
93+
cargo run --release --bin linera -- resource-control-policy --block 0.000000
94+
cargo run --release --bin linera -- faucet --amount 1000 --port 8079 69705f85ac4c9fef6c02b4d83426aaaf05154c645ec1c61665f8e450f0468bc0 &
95+
- name: Run the existing-net tests
96+
run: |
97+
cargo test -p linera-service existing_net_grpc --features existing-net
98+
7299
execution-wasmtime-test:
73100
runs-on: ubuntu-latest
74101
timeout-minutes: 10

0 commit comments

Comments
 (0)