Skip to content

Commit 021df28

Browse files
committed
ci: switch interop tests from js-ipfs to helia
Fixes #10013
1 parent 89b0432 commit 021df28

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

.github/workflows/build.yml

+21-14
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,20 @@ jobs:
4848
with:
4949
name: kubo
5050
path: cmd/ipfs/ipfs
51-
interop:
51+
helias:
5252
needs: [interop-prep]
5353
runs-on: ${{ fromJSON(github.repository == 'ipfs/kubo' && '["self-hosted", "linux", "x64", "2xlarge"]' || '"ubuntu-latest"') }}
5454
timeout-minutes: 20
5555
defaults:
5656
run:
5757
shell: bash
58+
strategy:
59+
matrix:
60+
repo-to-test-against: ["helia", "helia-ipns", "helia-unixfs"] # this needs to be manually kept in sync as new helia tests are written
5861
steps:
5962
- uses: actions/setup-node@v3
6063
with:
61-
node-version: 16.12.0
64+
node-version: lts/*
6265
- uses: actions/download-artifact@v3
6366
with:
6467
name: kubo
@@ -72,21 +75,25 @@ jobs:
7275
path: ${{ steps.npm-cache-dir.outputs.dir }}
7376
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/package-lock.json') }}
7477
restore-keys: |
75-
${{ runner.os }}-${{ github.job }}-
76-
- run: mkdir interop
78+
${{ runner.os }}-${{ github.job }}-${{ matrix.repo-to-test-against }}
79+
- uses: actions/checkout@v3
80+
with:
81+
repository: ipfs/${{ matrix.repo-to-test-against }}
82+
fetch-depth: 0
83+
path: interop
7784
- run: |
78-
npm init -y
79-
npm install ipfs@^0.66.0
80-
npm install kubo-rpc-client@^3.0.1
81-
npm install ipfs-interop@^10.0.1
85+
export TAG="$(git describe --tags --abbrev=0)"
86+
echo "Running tests against: $TAG"
87+
git checkout "$TAG"
8288
working-directory: interop
83-
# Run the interop tests while ignoring the js-js interop test cases
84-
- run: npx ipfs-interop -- -t node --grep '^(?!.*(js\d? -> js\d?|js-js-js|js-rv\d?-js))' --parallel
89+
- run: |
90+
npm install
91+
npm install --save "git+https://github.com/ipfs/npm-go-ipfs.git#4441b8a60f1cfee3035a9e4bb824dfcca08e9b01" # temporary while https://github.com/ipfs/npm-go-ipfs/pull/62 is being bubbled
92+
working-directory: interop/packages/interop
93+
- run: npm test
8594
env:
86-
LIBP2P_TCP_REUSEPORT: false
87-
LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
88-
IPFS_GO_EXEC: ${{ github.workspace }}/cmd/ipfs/ipfs
89-
working-directory: interop
95+
KUBO_BINARY: ${{ github.workspace }}/cmd/ipfs/ipfs
96+
working-directory: interop/packages/interop
9097
go-ipfs-api:
9198
needs: [interop-prep]
9299
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)