@@ -48,13 +48,16 @@ jobs:
48
48
with :
49
49
name : kubo
50
50
path : cmd/ipfs/ipfs
51
- interop :
51
+ helias :
52
52
needs : [interop-prep]
53
53
runs-on : ${{ fromJSON(github.repository == 'ipfs/kubo' && '["self-hosted", "linux", "x64", "2xlarge"]' || '"ubuntu-latest"') }}
54
54
timeout-minutes : 20
55
55
defaults :
56
56
run :
57
57
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
58
61
steps :
59
62
- uses : actions/setup-node@v3
60
63
with :
@@ -73,20 +76,21 @@ jobs:
73
76
key : ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/package-lock.json') }}
74
77
restore-keys : |
75
78
${{ runner.os }}-${{ github.job }}-
76
- - run : mkdir interop
77
- - 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
79
+ - uses : actions/checkout@v3
80
+ with :
81
+ repository : ipfs/${{ matrix.repo-to-test-against }}
82
+ fetch-depth : 0
83
+ path : interop
84
+ - run : git checkout "$(git tag | grep -E "^v[0-9]+\\.[0-9]+\\.[0-9]+\$" | sort --version-sort --reverse | head -n1)"
82
85
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
86
+ - run : |
87
+ 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
88
+ npm install
89
+ working-directory: interop/packages/interop
90
+ - run : npm test
85
91
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
92
+ KUBO_BINARY : ${{ github.workspace }}/cmd/ipfs/ipfs
93
+ working-directory : interop/packages/interop
90
94
go-ipfs-api :
91
95
needs : [interop-prep]
92
96
runs-on : ubuntu-latest
0 commit comments