From e5f1b9955133fcf19c5ff0b5d657a27a33d66755 Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Mon, 6 Nov 2023 13:10:32 -0500 Subject: [PATCH] ci: gateway conformance peer to local kubo --- .github/workflows/gateway-conformance.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gateway-conformance.yml b/.github/workflows/gateway-conformance.yml index 701985e..ca7dc83 100644 --- a/.github/workflows/gateway-conformance.yml +++ b/.github/workflows/gateway-conformance.yml @@ -24,6 +24,7 @@ jobs: run: | ipfs init --profile=test ipfs config Addresses.Gateway "/ip4/127.0.0.1/tcp/8080" + ipfs config Addresses.API "/ip4/127.0.0.1/tcp/5001" ipfs config --json Gateway.ExposeRoutingAPI true # 2. Download the gateway-conformance fixtures @@ -32,6 +33,9 @@ jobs: with: output: fixtures + - name: Start Kubo gateway + uses: ipfs/start-ipfs-daemon-action@v1 + # 3. Populate the Kubo gateway with the gateway-conformance fixtures - name: Import fixtures run: | @@ -52,9 +56,6 @@ jobs: export IPFS_NS_MAP="$(cat "./fixtures/dnslinks.json" | jq -r '.domains | to_entries | map("\(.key):\(.value)") | join(",")'),${IPFS_NS_MAP}" echo "IPFS_NS_MAP=${IPFS_NS_MAP}" >> $GITHUB_ENV - - name: Start Kubo gateway - uses: ipfs/start-ipfs-daemon-action@v1 - # 4. Build rainbow - name: Checkout rainbow uses: actions/checkout@v3 @@ -69,8 +70,11 @@ jobs: env: GATEWAY_CONFORMANCE_TEST: true run: | + # get kubo peerID + kuboNodeId=$(ipfs --api=/ip4/127.0.0.1/tcp/5001 id -f="") + # run gw - ./rainbow --routing=http://127.0.0.1:8080& + ./rainbow --routing=http://127.0.0.1:8080 --peering=/ip4/127.0.0.1/tcp/4001/p2p/$kuboNodeId & working-directory: rainbow # 6. Run the gateway-conformance tests