-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 1.16 KB
/
test.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
on:
push:
workflow_dispatch: {}
workflow_call:
name: test
jobs:
check:
name: Conduit test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Conduit
uses: conduit-xyz/conduit-toolchain@v1
with:
version: nightly
api_key: ${{ secrets.CONDUIT_API_KEY }}
organization: ${{ secrets.CONDUIT_ORGANIZATION }}
- name: create network
run: conduit network create --name "my-network-${{github.run_id}}" > out.json
- name: extract identifiers
id: data
run: |
echo "RPC_URL= $(jq '.network.rpcURL' out.json)" >> $GITHUB_OUTPUT
echo "NETWORK_ID= $(jq '.network.network' out.json)" >> $GITHUB_OUTPUT
- name: version check rpc url
run: |
curl -vvv -H "Content-Type: application/json" -X POST -d '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' ${{ steps.data.outputs.RPC_URL }}
# Once done, clean up the network
- name: delete network
run: conduit network delete --network ${{ steps.data.outputs.NETWORK_ID }}