Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 3ce2f76

Browse files
authoredSep 30, 2021
chore: re-enable testing examples (#3903)
Re-enables testing all examples except nextjs which needs a new release before the fix to enhanced-resolve will be pulled in.
1 parent 04e3cf3 commit 3ce2f76

File tree

2 files changed

+130
-132
lines changed

2 files changed

+130
-132
lines changed
 

‎.github/workflows/test.yml

+123-123
Original file line numberDiff line numberDiff line change
@@ -308,129 +308,129 @@ jobs:
308308
npm run link
309309
- run: npm run test:interface:message-port-client -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
310310

311-
# test-examples:
312-
# name: Test example ${{ matrix.example.name }}
313-
# needs: build
314-
# runs-on: ubuntu-latest
315-
# strategy:
316-
# matrix:
317-
# example:
318-
# - name: ipfs browser add readable stream
319-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-add-readable-stream.git
320-
# deps: ipfs@$PWD/packages/ipfs/dist
321-
# - name: ipfs browser angular
322-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-angular.git
323-
# deps: ipfs@$PWD/packages/ipfs/dist,ipfs-core-types@$PWD/packages/ipfs-core-types
324-
# - name: ipfs browser browserify
325-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-browserify.git
326-
# deps: ipfs@$PWD/packages/ipfs/dist
327-
# - name: ipfs browser react
328-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-create-react-app.git
329-
# deps: ipfs@$PWD/packages/ipfs/dist
330-
# - name: ipfs browser exchange files
331-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-exchange-files.git
332-
# deps: ipfs@$PWD/packages/ipfs/dist
333-
# - name: ipfs browser ipns publish
334-
# deps: ipfs@$PWD/packages/ipfs/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
335-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-ipns-publish.git
336-
# - name: ipfs browser mfs
337-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-mfs.git
338-
# deps: ipfs@$PWD/packages/ipfs/dist
339-
# - name: ipfs browser nextjs
340-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-nextjs.git
341-
# deps: ipfs@$PWD/packages/ipfs/dist
342-
# - name: ipfs browser parceljs
343-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-parceljs.git
344-
# deps: ipfs@$PWD/packages/ipfs/dist
345-
# - name: ipfs browser readable stream
346-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-readablestream.git
347-
# deps: ipfs@$PWD/packages/ipfs/dist
348-
# - name: ipfs browser service worker
349-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-service-worker.git
350-
# deps: ipfs@$PWD/packages/ipfs/dist,ipfs-message-port-client/dist@$PWD/packages/ipfs-message-port-client/dist,ipfs-message-port-protocol@$PWD/packages/ipfs-message-port-protocol/dist,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server/dist
351-
# - name: ipfs browser sharing across tabs
352-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-sharing-node-across-tabs.git
353-
# deps: ipfs@$PWD/packages/ipfs/dist,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client/dist,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server/dist
354-
# - name: ipfs browser video streaming
355-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-video-streaming.git
356-
# deps: ipfs@$PWD/packages/ipfs/dist
357-
# - name: ipfs browser vue
358-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-vue.git
359-
# deps: ipfs@$PWD/packages/ipfs/dist
360-
# - name: ipfs browser webpack
361-
# repo: https://github.com/ipfs-examples/js-ipfs-browser-webpack.git
362-
# deps: ipfs@$PWD/packages/ipfs/dist
363-
# - name: ipfs circuit relaying
364-
# repo: https://github.com/ipfs-examples/js-ipfs-circuit-relaying.git
365-
# deps: ipfs@$PWD/packages/ipfs/dist
366-
# - name: ipfs custom ipfs repo
367-
# repo: https://github.com/ipfs-examples/js-ipfs-custom-ipfs-repo.git
368-
# deps: ipfs@$PWD/packages/ipfs/dist
369-
# - name: ipfs custom ipld formats
370-
# repo: https://github.com/ipfs-examples/js-ipfs-custom-ipld-formats.git
371-
# deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-daemon@$PWD/packages/ipfs-daemon,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
372-
# - name: ipfs custom libp2p
373-
# repo: https://github.com/ipfs-examples/js-ipfs-custom-libp2p.git
374-
# deps: ipfs@$PWD/packages/ipfs/dist
375-
# - name: ipfs-http-client browser pubsub
376-
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-browser-pubsub.git
377-
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist
378-
# - name: ipfs-http-client bundle webpack
379-
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-bundle-webpack.git
380-
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist
381-
# - name: ipfs-http-client name api
382-
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-name-api.git
383-
# deps: ipfs@$PWD/packages/ipfs/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
384-
# - name: ipfs-http-client upload file
385-
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-upload-file.git
386-
# deps: ipfs@$PWD/packages/ipfs/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
387-
# - name: ipfs 101
388-
# repo: https://github.com/ipfs-examples/js-ipfs-101.git
389-
# deps: ipfs@$PWD/packages/ipfs/dist
390-
# - name: ipfs-client add files
391-
# repo: https://github.com/ipfs-examples/js-ipfs-ipfs-client-add-files.git
392-
# deps: ipfs@$PWD/packages/ipfs/dist,ipfs-client@$PWD/packages/ipfs-client
393-
# - name: ipfs electron js
394-
# repo: https://github.com/ipfs-examples/js-ipfs-run-in-electron.git
395-
# deps: ipfs@$PWD/packages/ipfs/dist
396-
# - name: ipfs running multiple nodes
397-
# repo: https://github.com/ipfs-examples/js-ipfs-running-multiple-nodes.git
398-
# deps: ipfs@$PWD/packages/ipfs/dist
399-
# - name: ipfs traverse ipld graphs
400-
# repo: https://github.com/ipfs-examples/js-ipfs-traverse-ipld-graphs.git
401-
# deps: ipfs@$PWD/packages/ipfs/dist
402-
# - name: types with typescript
403-
# repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-ts.git
404-
# deps: ipfs@$PWD/packages/ipfs/dist
405-
# - name: types with typed js
406-
# repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-typed-js.git
407-
# deps: ipfs@$PWD/packages/ipfs/dist
408-
# steps:
409-
# - uses: actions/checkout@v2
410-
# - uses: actions/setup-node@v2
411-
# with:
412-
# node-version: 16
413-
# - uses: actions/cache@v2
414-
# id: cache
415-
# env:
416-
# CACHE_NAME: cache-node-modules
417-
# with:
418-
# path: |
419-
# ~/.npm
420-
# ./node_modules
421-
# ./packages/*/node_modules
422-
# ./packages/*/dist
423-
# key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
424-
# - name: Install Dependencies
425-
# if: steps.cache.outputs.cache-hit != 'true'
426-
# run: |
427-
# npm install
428-
# npm run build
429-
# npm run link
430-
# - uses: GabrielBB/xvfb-action@v1
431-
# name: Run npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
432-
# with:
433-
# run: npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
311+
test-examples:
312+
name: Test example ${{ matrix.example.name }}
313+
needs: build
314+
runs-on: ubuntu-latest
315+
strategy:
316+
matrix:
317+
example:
318+
- name: ipfs browser add readable stream
319+
repo: https://github.com/ipfs-examples/js-ipfs-browser-add-readable-stream.git
320+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
321+
- name: ipfs browser angular
322+
repo: https://github.com/ipfs-examples/js-ipfs-browser-angular.git
323+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist
324+
- name: ipfs browser browserify
325+
repo: https://github.com/ipfs-examples/js-ipfs-browser-browserify.git
326+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
327+
- name: ipfs browser react
328+
repo: https://github.com/ipfs-examples/js-ipfs-browser-create-react-app.git
329+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
330+
- name: ipfs browser exchange files
331+
repo: https://github.com/ipfs-examples/js-ipfs-browser-exchange-files.git
332+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs@$PWD/packages/ipfs/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
333+
- name: ipfs browser ipns publish
334+
repo: https://github.com/ipfs-examples/js-ipfs-browser-ipns-publish.git
335+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
336+
- name: ipfs browser mfs
337+
repo: https://github.com/ipfs-examples/js-ipfs-browser-mfs.git
338+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
339+
# - name: ipfs browser nextjs
340+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-nextjs.git
341+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist
342+
- name: ipfs browser parceljs
343+
repo: https://github.com/ipfs-examples/js-ipfs-browser-parceljs.git
344+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
345+
- name: ipfs browser readable stream
346+
repo: https://github.com/ipfs-examples/js-ipfs-browser-readablestream.git
347+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
348+
- name: ipfs browser service worker
349+
repo: https://github.com/ipfs-examples/js-ipfs-browser-service-worker.git
350+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-message-port-client/dist@$PWD/packages/ipfs-message-port-client/dist,ipfs-message-port-protocol@$PWD/packages/ipfs-message-port-protocol/dist,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server/dist
351+
- name: ipfs browser sharing across tabs
352+
repo: https://github.com/ipfs-examples/js-ipfs-browser-sharing-node-across-tabs.git
353+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-message-port-client@$PWD/packages/ipfs-message-port-client/dist,ipfs-message-port-server@$PWD/packages/ipfs-message-port-server/dist
354+
- name: ipfs browser video streaming
355+
repo: https://github.com/ipfs-examples/js-ipfs-browser-video-streaming.git
356+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
357+
- name: ipfs browser vue
358+
repo: https://github.com/ipfs-examples/js-ipfs-browser-vue.git
359+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
360+
- name: ipfs browser webpack
361+
repo: https://github.com/ipfs-examples/js-ipfs-browser-webpack.git
362+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
363+
- name: ipfs circuit relaying
364+
repo: https://github.com/ipfs-examples/js-ipfs-circuit-relaying.git
365+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
366+
- name: ipfs custom ipfs repo
367+
repo: https://github.com/ipfs-examples/js-ipfs-custom-ipfs-repo.git
368+
deps: ipfs@$PWD/packages/ipfs/dist
369+
- name: ipfs custom ipld formats
370+
repo: https://github.com/ipfs-examples/js-ipfs-custom-ipld-formats.git
371+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-daemon@$PWD/packages/ipfs-daemon/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
372+
- name: ipfs custom libp2p
373+
repo: https://github.com/ipfs-examples/js-ipfs-custom-libp2p.git
374+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
375+
- name: ipfs-http-client browser pubsub
376+
repo: https://github.com/ipfs-examples/js-ipfs-http-client-browser-pubsub.git
377+
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist,ipfs@$PWD/packages/ipfs/dist
378+
- name: ipfs-http-client bundle webpack
379+
repo: https://github.com/ipfs-examples/js-ipfs-http-client-bundle-webpack.git
380+
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist,ipfs@$PWD/packages/ipfs/dist
381+
- name: ipfs-http-client name api
382+
repo: https://github.com/ipfs-examples/js-ipfs-http-client-name-api.git
383+
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
384+
- name: ipfs-http-client upload file
385+
repo: https://github.com/ipfs-examples/js-ipfs-http-client-upload-file.git
386+
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
387+
- name: ipfs 101
388+
repo: https://github.com/ipfs-examples/js-ipfs-101.git
389+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
390+
- name: ipfs-client add files
391+
repo: https://github.com/ipfs-examples/js-ipfs-ipfs-client-add-files.git
392+
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-client@$PWD/packages/ipfs-client/dist
393+
- name: ipfs electron js
394+
repo: https://github.com/ipfs-examples/js-ipfs-run-in-electron.git
395+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
396+
- name: ipfs running multiple nodes
397+
repo: https://github.com/ipfs-examples/js-ipfs-running-multiple-nodes.git
398+
deps: ipfs@$PWD/packages/ipfs/dist
399+
- name: ipfs traverse ipld graphs
400+
repo: https://github.com/ipfs-examples/js-ipfs-traverse-ipld-graphs.git
401+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
402+
- name: types with typescript
403+
repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-ts.git
404+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
405+
- name: types with typed js
406+
repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-typed-js.git
407+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist
408+
steps:
409+
- uses: actions/checkout@v2
410+
- uses: actions/setup-node@v2
411+
with:
412+
node-version: 16
413+
- uses: actions/cache@v2
414+
id: cache
415+
env:
416+
CACHE_NAME: cache-node-modules
417+
with:
418+
path: |
419+
~/.npm
420+
./node_modules
421+
./packages/*/node_modules
422+
./packages/*/dist
423+
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
424+
- name: Install Dependencies
425+
if: steps.cache.outputs.cache-hit != 'true'
426+
run: |
427+
npm install
428+
npm run build
429+
npm run link
430+
- uses: GabrielBB/xvfb-action@v1
431+
name: Run npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
432+
with:
433+
run: npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
434434

435435
test-externals:
436436
name: Test external ${{ matrix.external.name }}

‎packages/ipfs-http-response/package.json

+7-9
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@
3434
},
3535
"scripts": {
3636
"lint": "aegir ts -p check && aegir lint",
37-
"build": "aegir build",
38-
"release": "aegir release --target node",
39-
"release-minor": "aegir release --type minor --target node",
40-
"release-major": "aegir release --type major --target node",
37+
"clean": "rimraf ./dist",
38+
"build": "aegir build --no-bundle",
4139
"pretest": "aegir build --esm-tests",
4240
"test": "aegir test -t node",
43-
"test:node": "aegir test -t node"
41+
"test:node": "aegir test -t node",
42+
"dep-check": "aegir dep-check -i rimraf -i global"
4443
},
4544
"browser": {
4645
"file-type": "file-type/browser",
@@ -71,19 +70,18 @@
7170
"it-reader": "^3.0.0",
7271
"it-to-stream": "^1.0.0",
7372
"mime-types": "^2.1.30",
74-
"multiformats": "^9.4.1",
7573
"p-try-each": "^1.0.1"
7674
},
7775
"devDependencies": {
7876
"@types/ejs": "^3.1.0",
7977
"aegir": "^35.1.1",
8078
"get-stream": "^6.0.0",
79+
"global": "^4.4.0",
8180
"ipfs-core": "^0.11.1",
8281
"ipfsd-ctl": "^10.0.4",
8382
"it-all": "^1.0.4",
84-
"path": "^0.12.7",
85-
"uint8arrays": "^3.0.0",
86-
"util": "^0.12.3"
83+
"rimraf": "^3.0.2",
84+
"uint8arrays": "^3.0.0"
8785
},
8886
"contributors": [
8987
"Vasco Santos <vasco.santos@moxy.studio>",

0 commit comments

Comments
 (0)
This repository has been archived.