Skip to content

chore(deps): bump github.com/ipfs/go-unixfsnode from 1.10.5 to 1.10.6… #165

chore(deps): bump github.com/ipfs/go-unixfsnode from 1.10.5 to 1.10.6…

chore(deps): bump github.com/ipfs/go-unixfsnode from 1.10.5 to 1.10.6… #165

name: Gateway Conformance
on:
workflow_dispatch:
push:
branches:
- main
- master
pull_request:
paths-ignore:
- '**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
# 1. Download the gateway-conformance fixtures
- name: Download gateway-conformance fixtures
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@22c76440f8b5929bd14ff08bf79cb2f83669b629 # v0.13
with:
output: fixtures
merged: true
# 2. Build frisbii
- name: Checkout frisbii
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
path: frisbii
- name: Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: frisbii/go.mod
cache-dependency-path: frisbii/go.sum
- name: Build frisbii
run: go build -o frisbii ./cmd/frisbii
working-directory: frisbii
# 3. Start frisbii with fixtures
- name: Start frisbii
run: |
./frisbii --listen=127.0.0.1:3747 --car=../fixtures/fixtures.car > frisbii.log 2>&1 &
FRISBII_PID=$!
# Wait for frisbii to be ready (any HTTP response including 404 is OK)
for i in {1..30}; do
if curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:3747 2>/dev/null | grep -q '^[0-9]'; then
echo "frisbii is ready (PID: $FRISBII_PID)"
exit 0
fi
echo "Waiting for frisbii to start (attempt $i/30)..."
sleep 1
done
echo "frisbii failed to start within 30 seconds"
echo "==> frisbii log:"
cat frisbii.log
exit 1
working-directory: frisbii
# 4. Run the gateway-conformance tests
- name: Run gateway-conformance tests
uses: ipfs/gateway-conformance/.github/actions/test@22c76440f8b5929bd14ff08bf79cb2f83669b629 # v0.13
with:
gateway-url: http://127.0.0.1:3747
specs: trustless-gateway
args: -skip 'TestGatewayIPNSRecord'
json: output.json
xml: output.xml
html: output.html
markdown: output.md
# 5. Upload the results
- name: Upload MD summary
if: failure() || success()
run: cat output.md >> $GITHUB_STEP_SUMMARY
- name: Upload HTML report
if: failure() || success()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: gateway-conformance.html
path: output.html
- name: Upload JSON report
if: failure() || success()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: gateway-conformance.json
path: output.json