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

Commit af193b2

Browse files
authored
chore: update build scripts (#4025)
Use release-please for gated releases
1 parent b9382bc commit af193b2

File tree

16 files changed

+368
-237
lines changed

16 files changed

+368
-237
lines changed

.github/workflows/examples.yml

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
name: Examples
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- '**'
9+
10+
jobs:
11+
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: lts/*
20+
- uses: ipfs/aegir/actions/cache-node-modules@master
21+
with:
22+
build: |
23+
npm run link
24+
25+
test-examples:
26+
name: Test example ${{ matrix.example.name }}
27+
needs: build
28+
runs-on: ubuntu-latest
29+
continue-on-error: true
30+
strategy:
31+
matrix:
32+
example:
33+
- name: ipfs browser add readable stream
34+
repo: https://github.com/ipfs-examples/js-ipfs-browser-add-readable-stream.git
35+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
36+
- name: ipfs browser angular
37+
repo: https://github.com/ipfs-examples/js-ipfs-browser-angular.git
38+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist
39+
- name: ipfs browser browserify
40+
repo: https://github.com/ipfs-examples/js-ipfs-browser-browserify.git
41+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
42+
- name: ipfs browser react
43+
repo: https://github.com/ipfs-examples/js-ipfs-browser-create-react-app.git
44+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
45+
- name: ipfs browser exchange files
46+
repo: https://github.com/ipfs-examples/js-ipfs-browser-exchange-files.git
47+
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
48+
#- name: ipfs browser ipns publish TODO: re-enable after example bumped to go-ipfs 0.11 and ipfs-http-client from https://github.com/ipfs/js-ipfs/pull/3922
49+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-ipns-publish.git
50+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
51+
- name: ipfs browser mfs
52+
repo: https://github.com/ipfs-examples/js-ipfs-browser-mfs.git
53+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
54+
# - name: ipfs browser nextjs
55+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-nextjs.git
56+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist
57+
- name: ipfs browser parceljs
58+
repo: https://github.com/ipfs-examples/js-ipfs-browser-parceljs.git
59+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
60+
- name: ipfs browser readable stream
61+
repo: https://github.com/ipfs-examples/js-ipfs-browser-readablestream.git
62+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
63+
- name: ipfs browser service worker
64+
repo: https://github.com/ipfs-examples/js-ipfs-browser-service-worker.git
65+
deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-message-port-client@$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
66+
- name: ipfs browser sharing across tabs
67+
repo: https://github.com/ipfs-examples/js-ipfs-browser-sharing-node-across-tabs.git
68+
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
69+
- name: ipfs browser video streaming
70+
repo: https://github.com/ipfs-examples/js-ipfs-browser-video-streaming.git
71+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
72+
#- name: ipfs browser vue
73+
# repo: https://github.com/ipfs-examples/js-ipfs-browser-vue.git
74+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist
75+
- name: ipfs browser webpack
76+
repo: https://github.com/ipfs-examples/js-ipfs-browser-webpack.git
77+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
78+
#- name: ipfs circuit relaying
79+
# repo: https://github.com/ipfs-examples/js-ipfs-circuit-relaying.git
80+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
81+
- name: ipfs custom ipfs repo
82+
repo: https://github.com/ipfs-examples/js-ipfs-custom-ipfs-repo.git
83+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
84+
#- name: ipfs custom ipld formats
85+
# repo: https://github.com/ipfs-examples/js-ipfs-custom-ipld-formats.git
86+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-daemon@$PWD/packages/ipfs-daemon/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
87+
- name: ipfs custom libp2p
88+
repo: https://github.com/ipfs-examples/js-ipfs-custom-libp2p.git
89+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
90+
#- name: ipfs-http-client browser pubsub TODO: re-enable after example bumped to go-ipfs 0.11 and ipfs-http-client from https://github.com/ipfs/js-ipfs/pull/3922
91+
# repo: https://github.com/ipfs-examples/js-ipfs-http-client-browser-pubsub.git
92+
# deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist,ipfs@$PWD/packages/ipfs/dist
93+
- name: ipfs-http-client bundle webpack
94+
repo: https://github.com/ipfs-examples/js-ipfs-http-client-bundle-webpack.git
95+
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist,ipfs@$PWD/packages/ipfs/dist
96+
- name: ipfs-http-client name api
97+
repo: https://github.com/ipfs-examples/js-ipfs-http-client-name-api.git
98+
deps: ipfs-http-client@$PWD/packages/ipfs-http-client/dist
99+
- name: ipfs-http-client upload file
100+
repo: https://github.com/ipfs-examples/js-ipfs-http-client-upload-file.git
101+
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-http-client@$PWD/packages/ipfs-http-client/dist
102+
- name: ipfs 101
103+
repo: https://github.com/ipfs-examples/js-ipfs-101.git
104+
deps: ipfs-core@$PWD/packages/ipfs-core/dist
105+
- name: ipfs-client add files
106+
repo: https://github.com/ipfs-examples/js-ipfs-ipfs-client-add-files.git
107+
deps: ipfs@$PWD/packages/ipfs/dist,ipfs-client@$PWD/packages/ipfs-client/dist
108+
#- name: ipfs electron js
109+
# repo: https://github.com/ipfs-examples/js-ipfs-run-in-electron.git
110+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist
111+
- name: ipfs running multiple nodes
112+
repo: https://github.com/ipfs-examples/js-ipfs-running-multiple-nodes.git
113+
deps: ipfs@$PWD/packages/ipfs/dist
114+
#- name: ipfs traverse ipld graphs
115+
# repo: https://github.com/ipfs-examples/js-ipfs-traverse-ipld-graphs.git
116+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist
117+
#- name: types with typescript
118+
# repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-ts.git
119+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist
120+
#- name: types with typed js
121+
# repo: https://github.com/ipfs-examples/js-ipfs-types-use-ipfs-from-typed-js.git
122+
# deps: ipfs-core@$PWD/packages/ipfs-core/dist,ipfs-core-types@$PWD/packages/ipfs-core-types/dist
123+
steps:
124+
- uses: actions/checkout@v2
125+
- uses: actions/setup-node@v2
126+
with:
127+
node-version: lts/*
128+
- uses: ipfs/aegir/actions/cache-node-modules@master
129+
with:
130+
build: |
131+
npm run link
132+
- uses: GabrielBB/xvfb-action@v1
133+
name: Run npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}
134+
with:
135+
run: npm run test:external -- -- -- ${{ matrix.example.repo }} --deps ${{ matrix.example.deps }}

.github/workflows/externals.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Externals
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- '**'
9+
10+
jobs:
11+
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: lts/*
20+
- uses: ipfs/aegir/actions/cache-node-modules@master
21+
with:
22+
build: |
23+
npm run link
24+
25+
test-externals:
26+
name: Test external ${{ matrix.external.name }}
27+
needs: build
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
external:
32+
- name: ipfs webui
33+
repo: https://github.com/ipfs-shipyard/ipfs-webui.git
34+
deps: ipfs@$PWD/packages/ipfs/dist
35+
- name: ipfs companion
36+
repo: https://github.com/ipfs-shipyard/ipfs-companion.git
37+
deps: ipfs@$PWD/packages/ipfs/dist
38+
- name: orbit-db-io
39+
repo: https://github.com/orbitdb/orbit-db-io.git
40+
deps: ipfs@$PWD/packages/ipfs/dist
41+
- name: ipfs-log
42+
repo: https://github.com/orbitdb/ipfs-log.git
43+
deps: ipfs@$PWD/packages/ipfs/dist,orbit-db-io@next
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: actions/setup-node@v2
47+
with:
48+
node-version: lts/*
49+
- uses: ipfs/aegir/actions/cache-node-modules@master
50+
with:
51+
build: |
52+
npm run link
53+
- uses: GabrielBB/xvfb-action@v1
54+
name: Run npm run test:external -- -- -- ${{ matrix.external.repo }} --deps ${{ matrix.external.deps }} --branch ${{ matrix.external.branch }}
55+
continue-on-error: true
56+
with:
57+
run: npm run test:external -- -- -- ${{ matrix.external.repo }} --deps ${{ matrix.external.deps }} --branch ${{ matrix.external.branch }}

.github/workflows/release.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)