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

Commit 8d26021

Browse files
committedJan 27, 2022
chore: re-enable build
1 parent b01b06b commit 8d26021

File tree

2 files changed

+257
-259
lines changed

2 files changed

+257
-259
lines changed
 

‎.github/workflows/test.yml

+257-257
Original file line numberDiff line numberDiff line change
@@ -9,277 +9,277 @@ on:
99

1010
jobs:
1111

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
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
2424
25-
# check:
26-
# name: Check
27-
# needs: build
28-
# runs-on: ubuntu-latest
29-
# steps:
30-
# - uses: actions/checkout@v2
31-
# - uses: actions/setup-node@v2
32-
# with:
33-
# node-version: lts/*
34-
# - uses: ipfs/aegir/actions/cache-node-modules@master
35-
# with:
36-
# build: |
37-
# npm run link
38-
# - run: |
39-
# npm run lint
40-
# npm run dep-check -- -- -- -p
41-
# npm run dep-check -- -- -- -- --unused
25+
check:
26+
name: Check
27+
needs: build
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: actions/setup-node@v2
32+
with:
33+
node-version: lts/*
34+
- uses: ipfs/aegir/actions/cache-node-modules@master
35+
with:
36+
build: |
37+
npm run link
38+
- run: |
39+
npm run lint
40+
npm run dep-check -- -- -- -p
41+
npm run dep-check -- -- -- -- --unused
4242
43-
# test-node:
44-
# name: Unit tests node ${{ matrix.node }} ${{ matrix.os }}
45-
# needs: build
46-
# runs-on: ${{ matrix.os }}
47-
# strategy:
48-
# matrix:
49-
# os: [windows-latest, ubuntu-latest, macos-latest]
50-
# node: [16]
51-
# steps:
52-
# - uses: actions/checkout@v2
53-
# with:
54-
# fetch-depth: 0
55-
# - uses: actions/setup-node@v2
56-
# with:
57-
# node-version: ${{ matrix.node }}
58-
# - uses: ipfs/aegir/actions/cache-node-modules@master
59-
# with:
60-
# build: |
61-
# npm run link
62-
# - run: npm run test:node -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
63-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
64-
# with:
65-
# flags: node
43+
test-node:
44+
name: Unit tests node ${{ matrix.node }} ${{ matrix.os }}
45+
needs: build
46+
runs-on: ${{ matrix.os }}
47+
strategy:
48+
matrix:
49+
os: [windows-latest, ubuntu-latest, macos-latest]
50+
node: [16]
51+
steps:
52+
- uses: actions/checkout@v2
53+
with:
54+
fetch-depth: 0
55+
- uses: actions/setup-node@v2
56+
with:
57+
node-version: ${{ matrix.node }}
58+
- uses: ipfs/aegir/actions/cache-node-modules@master
59+
with:
60+
build: |
61+
npm run link
62+
- run: npm run test:node -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
63+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
64+
with:
65+
flags: node
6666

67-
# test-chrome:
68-
# name: Unit tests chrome
69-
# needs: build
70-
# runs-on: ubuntu-latest
71-
# steps:
72-
# - uses: actions/checkout@v2
73-
# with:
74-
# fetch-depth: 0
75-
# - uses: actions/setup-node@v2
76-
# with:
77-
# node-version: lts/*
78-
# - uses: ipfs/aegir/actions/cache-node-modules@master
79-
# with:
80-
# build: |
81-
# npm run link
82-
# - run: npm run test:chrome -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
83-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
84-
# with:
85-
# flags: chrome
67+
test-chrome:
68+
name: Unit tests chrome
69+
needs: build
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v2
73+
with:
74+
fetch-depth: 0
75+
- uses: actions/setup-node@v2
76+
with:
77+
node-version: lts/*
78+
- uses: ipfs/aegir/actions/cache-node-modules@master
79+
with:
80+
build: |
81+
npm run link
82+
- run: npm run test:chrome -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
83+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
84+
with:
85+
flags: chrome
8686

87-
# test-chrome-webworker:
88-
# name: Unit tests chrome-webworker
89-
# needs: build
90-
# runs-on: ubuntu-latest
91-
# steps:
92-
# - uses: actions/checkout@v2
93-
# with:
94-
# fetch-depth: 0
95-
# - uses: actions/setup-node@v2
96-
# with:
97-
# node-version: lts/*
98-
# - uses: ipfs/aegir/actions/cache-node-modules@master
99-
# with:
100-
# build: |
101-
# npm run link
102-
# - run: npm run test:chrome-webworker -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
103-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
104-
# with:
105-
# flags: chrome-webworker
87+
test-chrome-webworker:
88+
name: Unit tests chrome-webworker
89+
needs: build
90+
runs-on: ubuntu-latest
91+
steps:
92+
- uses: actions/checkout@v2
93+
with:
94+
fetch-depth: 0
95+
- uses: actions/setup-node@v2
96+
with:
97+
node-version: lts/*
98+
- uses: ipfs/aegir/actions/cache-node-modules@master
99+
with:
100+
build: |
101+
npm run link
102+
- run: npm run test:chrome-webworker -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
103+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
104+
with:
105+
flags: chrome-webworker
106106

107-
# test-firefox:
108-
# name: Unit tests firefox
109-
# needs: build
110-
# runs-on: ubuntu-latest
111-
# steps:
112-
# - uses: actions/checkout@v2
113-
# with:
114-
# fetch-depth: 0
115-
# - uses: actions/setup-node@v2
116-
# with:
117-
# node-version: lts/*
118-
# - uses: ipfs/aegir/actions/cache-node-modules@master
119-
# with:
120-
# build: |
121-
# npm run link
122-
# - run: npm run test:firefox -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
123-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
124-
# with:
125-
# flags: firefox
107+
test-firefox:
108+
name: Unit tests firefox
109+
needs: build
110+
runs-on: ubuntu-latest
111+
steps:
112+
- uses: actions/checkout@v2
113+
with:
114+
fetch-depth: 0
115+
- uses: actions/setup-node@v2
116+
with:
117+
node-version: lts/*
118+
- uses: ipfs/aegir/actions/cache-node-modules@master
119+
with:
120+
build: |
121+
npm run link
122+
- run: npm run test:firefox -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
123+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
124+
with:
125+
flags: firefox
126126

127-
# test-firefox-webworker:
128-
# name: Unit tests firefox-webworker
129-
# needs: build
130-
# runs-on: ubuntu-latest
131-
# steps:
132-
# - uses: actions/checkout@v2
133-
# with:
134-
# fetch-depth: 0
135-
# - uses: actions/setup-node@v2
136-
# with:
137-
# node-version: lts/*
138-
# - uses: ipfs/aegir/actions/cache-node-modules@master
139-
# with:
140-
# build: |
141-
# npm run link
142-
# - run: npx playwright install --with-deps
143-
# - run: npm run test:firefox-webworker -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
144-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
145-
# with:
146-
# flags: firefox-webworker
127+
test-firefox-webworker:
128+
name: Unit tests firefox-webworker
129+
needs: build
130+
runs-on: ubuntu-latest
131+
steps:
132+
- uses: actions/checkout@v2
133+
with:
134+
fetch-depth: 0
135+
- uses: actions/setup-node@v2
136+
with:
137+
node-version: lts/*
138+
- uses: ipfs/aegir/actions/cache-node-modules@master
139+
with:
140+
build: |
141+
npm run link
142+
- run: npx playwright install --with-deps
143+
- run: npm run test:firefox-webworker -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
144+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
145+
with:
146+
flags: firefox-webworker
147147

148-
# test-electron-main:
149-
# name: Unit tests electron-main
150-
# needs: build
151-
# runs-on: ubuntu-latest
152-
# steps:
153-
# - uses: actions/checkout@v2
154-
# with:
155-
# fetch-depth: 0
156-
# - uses: actions/setup-node@v2
157-
# with:
158-
# node-version: lts/*
159-
# - uses: ipfs/aegir/actions/cache-node-modules@master
160-
# with:
161-
# build: |
162-
# npm run link
163-
# - uses: GabrielBB/xvfb-action@v1
164-
# with:
165-
# run: npm run test:electron-main -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- --bail
166-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
167-
# with:
168-
# flags: electron-main
148+
test-electron-main:
149+
name: Unit tests electron-main
150+
needs: build
151+
runs-on: ubuntu-latest
152+
steps:
153+
- uses: actions/checkout@v2
154+
with:
155+
fetch-depth: 0
156+
- uses: actions/setup-node@v2
157+
with:
158+
node-version: lts/*
159+
- uses: ipfs/aegir/actions/cache-node-modules@master
160+
with:
161+
build: |
162+
npm run link
163+
- uses: GabrielBB/xvfb-action@v1
164+
with:
165+
run: npm run test:electron-main -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- --bail
166+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
167+
with:
168+
flags: electron-main
169169

170-
# test-electron-renderer:
171-
# name: Unit tests electron-renderer
172-
# needs: build
173-
# runs-on: ubuntu-latest
174-
# steps:
175-
# - uses: actions/checkout@v2
176-
# with:
177-
# fetch-depth: 0
178-
# - uses: actions/setup-node@v2
179-
# with:
180-
# node-version: lts/*
181-
# - uses: ipfs/aegir/actions/cache-node-modules@master
182-
# with:
183-
# build: |
184-
# npm run link
185-
# - uses: GabrielBB/xvfb-action@v1
186-
# with:
187-
# run: npm run test:electron-renderer -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- --bail
188-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
189-
# with:
190-
# flags: electron-renderer
170+
test-electron-renderer:
171+
name: Unit tests electron-renderer
172+
needs: build
173+
runs-on: ubuntu-latest
174+
steps:
175+
- uses: actions/checkout@v2
176+
with:
177+
fetch-depth: 0
178+
- uses: actions/setup-node@v2
179+
with:
180+
node-version: lts/*
181+
- uses: ipfs/aegir/actions/cache-node-modules@master
182+
with:
183+
build: |
184+
npm run link
185+
- uses: GabrielBB/xvfb-action@v1
186+
with:
187+
run: npm run test:electron-renderer -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- --bail
188+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
189+
with:
190+
flags: electron-renderer
191191

192-
# test-interop:
193-
# name: Interop tests ${{ matrix.project }} ${{ matrix.type }}
194-
# runs-on: ubuntu-latest
195-
# strategy:
196-
# matrix:
197-
# type:
198-
# - node
199-
# - browser
200-
# #- electron-main
201-
# #- electron-renderer
202-
# steps:
203-
# - uses: actions/checkout@v2
204-
# with:
205-
# fetch-depth: 0
206-
# - uses: actions/setup-node@v2
207-
# with:
208-
# node-version: lts/*
209-
# - uses: ipfs/aegir/actions/cache-node-modules@master
210-
# with:
211-
# build: |
212-
# npm run link
213-
# - run: npm install
214-
# - run: npm run build
215-
# - run: npm run link
216-
# - run: npm run test:interop -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -- -t ${{ matrix.type }}
217-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
218-
# with:
219-
# flags: interop-${{ matrix.type }}
192+
test-interop:
193+
name: Interop tests ${{ matrix.project }} ${{ matrix.type }}
194+
runs-on: ubuntu-latest
195+
strategy:
196+
matrix:
197+
type:
198+
- node
199+
- browser
200+
#- electron-main
201+
#- electron-renderer
202+
steps:
203+
- uses: actions/checkout@v2
204+
with:
205+
fetch-depth: 0
206+
- uses: actions/setup-node@v2
207+
with:
208+
node-version: lts/*
209+
- uses: ipfs/aegir/actions/cache-node-modules@master
210+
with:
211+
build: |
212+
npm run link
213+
- run: npm install
214+
- run: npm run build
215+
- run: npm run link
216+
- run: npm run test:interop -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -- -t ${{ matrix.type }}
217+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
218+
with:
219+
flags: interop-${{ matrix.type }}
220220

221-
# test-interface:
222-
# name: Interface tests ${{ matrix.suite }} ${{ matrix.type }}
223-
# runs-on: ubuntu-latest
224-
# strategy:
225-
# matrix:
226-
# type:
227-
# - node
228-
# - browser
229-
# #- electron-main
230-
# #- electron-renderer
231-
# suite:
232-
# - test:interface:core
233-
# - test:interface:client
234-
# - test:interface:http-go
235-
# - test:interface:http-js
236-
# steps:
237-
# - uses: actions/checkout@v2
238-
# with:
239-
# fetch-depth: 0
240-
# - uses: actions/setup-node@v2
241-
# with:
242-
# node-version: lts/*
243-
# - run: npm install
244-
# - run: npm run build
245-
# - run: npm run link
246-
# - run: npm run ${{ matrix.suite }} -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -t ${{ matrix.type }}
247-
# - uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
248-
# with:
249-
# flags: interface-${{ matrix.type }}
221+
test-interface:
222+
name: Interface tests ${{ matrix.suite }} ${{ matrix.type }}
223+
runs-on: ubuntu-latest
224+
strategy:
225+
matrix:
226+
type:
227+
- node
228+
- browser
229+
#- electron-main
230+
#- electron-renderer
231+
suite:
232+
- test:interface:core
233+
- test:interface:client
234+
- test:interface:http-go
235+
- test:interface:http-js
236+
steps:
237+
- uses: actions/checkout@v2
238+
with:
239+
fetch-depth: 0
240+
- uses: actions/setup-node@v2
241+
with:
242+
node-version: lts/*
243+
- run: npm install
244+
- run: npm run build
245+
- run: npm run link
246+
- run: npm run ${{ matrix.suite }} -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1 -- -- -t ${{ matrix.type }}
247+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
248+
with:
249+
flags: interface-${{ matrix.type }}
250250

251-
# test-interface-message-port-client:
252-
# name: Interface tests test:interface:message-port-client browser
253-
# needs: build
254-
# runs-on: ubuntu-latest
255-
# steps:
256-
# - uses: actions/checkout@v2
257-
# with:
258-
# fetch-depth: 0
259-
# - uses: actions/setup-node@v2
260-
# with:
261-
# node-version: lts/*
262-
# - uses: ipfs/aegir/actions/cache-node-modules@master
263-
# with:
264-
# build: |
265-
# npm run link
266-
# - run: npx playwright install --with-deps
267-
# - run: npm run test:interface:message-port-client -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
251+
test-interface-message-port-client:
252+
name: Interface tests test:interface:message-port-client browser
253+
needs: build
254+
runs-on: ubuntu-latest
255+
steps:
256+
- uses: actions/checkout@v2
257+
with:
258+
fetch-depth: 0
259+
- uses: actions/setup-node@v2
260+
with:
261+
node-version: lts/*
262+
- uses: ipfs/aegir/actions/cache-node-modules@master
263+
with:
264+
build: |
265+
npm run link
266+
- run: npx playwright install --with-deps
267+
- run: npm run test:interface:message-port-client -- --since ${{ github.event.pull_request.base.sha }} --concurrency 1
268268

269269
release:
270270
runs-on: ubuntu-latest
271-
# needs: [
272-
# test-node,
273-
# test-chrome,
274-
# test-chrome-webworker,
275-
# test-firefox,
276-
# test-firefox-webworker,
277-
# test-electron-main,
278-
# test-electron-renderer,
279-
# test-interop,
280-
# test-interface,
281-
# test-interface-message-port-client
282-
# ]
271+
needs: [
272+
test-node,
273+
test-chrome,
274+
test-chrome-webworker,
275+
test-firefox,
276+
test-firefox-webworker,
277+
test-electron-main,
278+
test-electron-renderer,
279+
test-interop,
280+
test-interface,
281+
test-interface-message-port-client
282+
]
283283
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
284284
steps:
285285
- uses: GoogleCloudPlatform/release-please-action@v2

‎.release-please.json

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"bootstrap-sha": "7375caa8805298fc671ed4080e1023aafe756151",
3-
"last-release-sha": "7375caa8805298fc671ed4080e1023aafe756151",
42
"plugins": ["node-workspace"],
53
"bump-minor-pre-major": true,
64
"group-pull-request-title-pattern": "chore: release ${component}",

0 commit comments

Comments
 (0)
This repository has been archived.