Skip to content

Commit

Permalink
ci: gateway conformance peer to local kubo
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Nov 6, 2023
1 parent c37242f commit 9d9360a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/gateway-conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -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="<id>")
# 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/kuboNodeId &
working-directory: rainbow

# 6. Run the gateway-conformance tests
Expand Down

0 comments on commit 9d9360a

Please sign in to comment.