Skip to content

Commit 93d3be7

Browse files
committed
Run existing-net-test in a Kubernetes local network
1 parent 3915f61 commit 93d3be7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/rust.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,25 @@ jobs:
8787
run: |
8888
cargo test -p linera-service remote_net_grpc --features remote-net
8989
90+
remote-kubernetes-net-test:
91+
runs-on: ubuntu-latest-8-cores
92+
timeout-minutes: 40
93+
94+
steps:
95+
- uses: actions/checkout@v3
96+
- uses: actions-rust-lang/setup-rust-toolchain@v1
97+
- name: Install Protoc
98+
uses: arduino/setup-protoc@v1
99+
with:
100+
repo-token: ${{ secrets.GITHUB_TOKEN }}
101+
- name: Run the validators and faucet
102+
run: |
103+
mkdir /tmp/local-linera-net
104+
cargo run --features kubernetes --release --bin linera -- net up --kubernetes --policy-config testnet --path /tmp/local-linera-net --validators 4 --shards 4 --with-faucet &
105+
- name: Run the remote-net tests
106+
run: |
107+
cargo test -p linera-service remote_net_grpc --features remote-net
108+
90109
execution-wasmtime-test:
91110
needs: changed-files
92111
if: needs.changed-files.outputs.should-run == 'true'

0 commit comments

Comments
 (0)