Skip to content

Commit 28a9a65

Browse files
committed
test: E2E tests against ipfs-webui HEAD
This adds interop/regression tests against ipfs-webui repo. License: MIT Signed-off-by: Marcin Rataj <[email protected]>
1 parent 8a16b87 commit 28a9a65

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Diff for: .circleci/config.yml

+45
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ executors:
4343
working_directory: ~/ipfs/go-ipfs
4444
environment:
4545
<<: *default_environment
46+
node-browsers:
47+
docker:
48+
- image: circleci/node:10-browsers
49+
working_directory: ~/ipfs/go-ipfs
50+
environment:
51+
<<: *default_environment
52+
NO_SANDBOX: true
4653

4754
jobs:
4855
gobuild:
@@ -255,6 +262,41 @@ jobs:
255262
paths:
256263
- ~/go/pkg/mod
257264
- ~/.cache/go-build/
265+
ipfs-webui:
266+
executor: node-browsers
267+
steps:
268+
- *make_out_dirs
269+
- attach_workspace:
270+
at: /tmp/circleci-workspace
271+
- run:
272+
name: Cloning
273+
command: |
274+
git clone https://github.com/ipfs-shipyard/ipfs-webui.git
275+
git -C ipfs-webui checkout "fix/test-external" || true
276+
git -C ipfs-webui log -1
277+
- restore_cache:
278+
keys:
279+
- v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }}
280+
- v1-ipfs-webui-
281+
- run:
282+
name: Installing dependencies
283+
command: |
284+
npm install
285+
working_directory: ~/ipfs/go-ipfs/ipfs-webui
286+
- run:
287+
name: Running tests
288+
command: |
289+
npm test
290+
working_directory: ~/ipfs/go-ipfs/ipfs-webui
291+
environment:
292+
IPFS_REUSEPORT: false
293+
LIBP2P_ALLOW_WEAK_RSA_KEYS: true
294+
E2E_IPFSD_TYPE: go
295+
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
296+
- save_cache:
297+
key: v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }}
298+
paths:
299+
- ~/ipfs/go-ipfs/ipfs-webui/node_modules
258300
workflows:
259301
version: 2
260302
test:
@@ -273,3 +315,6 @@ workflows:
273315
- go-ipfs-http-client:
274316
requires:
275317
- build
318+
- ipfs-webui:
319+
requires:
320+
- build

0 commit comments

Comments
 (0)