Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit bd8767c

Browse files
committed
chore: update build config
1 parent 037f902 commit bd8767c

File tree

9 files changed

+3196
-9612
lines changed

9 files changed

+3196
-9612
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: daily
7-
time: "11:00"
7+
time: "10:00"
88
open-pull-requests-limit: 10

.github/workflows/test.yml

Lines changed: 29 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,13 @@ jobs:
2828
- uses: actions/setup-node@v2
2929
with:
3030
node-version: 16
31-
- uses: actions/cache@v2
32-
env:
33-
CACHE_NAME: cache-node-modules
31+
- uses: ipfs/aegir/actions/cache-node-modules@master
3432
with:
35-
path: |
33+
directories: |
3634
/tmp/*-ipfs/**
3735
./scripts/libp2p-relay-daemon
38-
~/.npm
39-
./node_modules
40-
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
41-
- name: Install Dependencies
42-
run: |
43-
npm install
36+
build: |
4437
./scripts/custom-runtime.sh
45-
npm run build
4638
4739
check:
4840
name: Check
@@ -53,22 +45,13 @@ jobs:
5345
- uses: actions/setup-node@v2
5446
with:
5547
node-version: 16
56-
- uses: actions/cache@v2
57-
id: cache
58-
env:
59-
CACHE_NAME: cache-node-modules
48+
- uses: ipfs/aegir/actions/cache-node-modules@master
6049
with:
61-
path: |
50+
directories: |
6251
/tmp/*-ipfs/**
6352
./scripts/libp2p-relay-daemon
64-
~/.npm
65-
./node_modules
66-
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
67-
- name: Install Dependencies
68-
if: steps.cache.outputs.cache-hit != 'true'
69-
run: |
70-
npm install
71-
npm run build
53+
build: |
54+
./scripts/custom-runtime.sh
7255
- run: |
7356
npm run lint
7457
npm run dep-check
@@ -82,22 +65,13 @@ jobs:
8265
- uses: actions/setup-node@v2
8366
with:
8467
node-version: 16
85-
- uses: actions/cache@v2
86-
id: cache
87-
env:
88-
CACHE_NAME: cache-node-modules
68+
- uses: ipfs/aegir/actions/cache-node-modules@master
8969
with:
90-
path: |
70+
directories: |
9171
/tmp/*-ipfs/**
9272
./scripts/libp2p-relay-daemon
93-
~/.npm
94-
./node_modules
95-
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
96-
- name: Install Dependencies
97-
if: steps.cache.outputs.cache-hit != 'true'
98-
run: |
99-
npm install
100-
npm run build
73+
build: |
74+
./scripts/custom-runtime.sh
10175
- run: npm run test -- -t node
10276

10377
test-browser:
@@ -118,22 +92,13 @@ jobs:
11892
- uses: actions/setup-node@v2
11993
with:
12094
node-version: 16
121-
- uses: actions/cache@v2
122-
id: cache
123-
env:
124-
CACHE_NAME: cache-node-modules
95+
- uses: ipfs/aegir/actions/cache-node-modules@master
12596
with:
126-
path: |
97+
directories: |
12798
/tmp/*-ipfs/**
12899
./scripts/libp2p-relay-daemon
129-
~/.npm
130-
./node_modules
131-
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
132-
- name: Install Dependencies
133-
if: steps.cache.outputs.cache-hit != 'true'
134-
run: |
135-
npm install
136-
npm run build
100+
build: |
101+
./scripts/custom-runtime.sh
137102
- run: npm run test -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }}
138103

139104
test-electron:
@@ -151,38 +116,36 @@ jobs:
151116
- uses: actions/setup-node@v2
152117
with:
153118
node-version: 16
154-
- uses: actions/cache@v2
155-
id: cache
156-
env:
157-
CACHE_NAME: cache-node-modules
119+
- uses: ipfs/aegir/actions/cache-node-modules@master
158120
with:
159-
path: |
121+
directories: |
160122
/tmp/*-ipfs/**
161123
./scripts/libp2p-relay-daemon
162-
~/.npm
163-
./node_modules
164-
key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
165-
- name: Install Dependencies
166-
if: steps.cache.outputs.cache-hit != 'true'
167-
run: |
168-
npm install
169-
npm run build
124+
build: |
125+
./scripts/custom-runtime.sh
170126
- uses: GabrielBB/xvfb-action@v1
171127
with:
172128
run: npm run test -- -t ${{ matrix.type }} --bail -f dist/cjs/node-test/*js
173129

174130
release:
175-
needs: [test-node, test-browser, test-electron]
131+
# needs: [test-node, test-browser, test-electron]
176132
runs-on: ubuntu-latest
177133
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
178134
steps:
179-
- uses: actions/checkout@v2.4.0
135+
- uses: actions/checkout@v2
180136
with:
181137
fetch-depth: 0
138+
- uses: ipfs/aegir/actions/cache-node-modules@master
139+
with:
140+
directories: |
141+
/tmp/*-ipfs/**
142+
./scripts/libp2p-relay-daemon
143+
build: |
144+
./scripts/custom-runtime.sh
182145
- uses: actions/setup-node@v2
183146
with:
184147
node-version: lts/*
185-
- uses: ipfs/aegir/actions/cache-node-modules@master
148+
186149
- run: npm run --if-present release
187150
env:
188151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
### [8.0.1](https://github.com/ipfs/interop/compare/v8.0.0...v8.0.1) (2022-01-26)
2+
3+
4+
### Bug Fixes
5+
6+
* disable js dht during circuit tests ([#430](https://github.com/ipfs/interop/issues/430)) ([8a1bbd5](https://github.com/ipfs/interop/commit/8a1bbd5d26dcf568eed7c67c519e2a874c571906))
7+
8+
9+
### Trivial Changes
10+
11+
* add auto-release ([b7fff84](https://github.com/ipfs/interop/commit/b7fff8485171db0785a2584bf7e65a69424a55ff))
12+
* do not use readable streams for input ([4ea14c5](https://github.com/ipfs/interop/commit/4ea14c513b270275e4d0b189be829e7b630bf12d))
13+
* restore ci tests on default branch ([#424](https://github.com/ipfs/interop/issues/424)) ([037f902](https://github.com/ipfs/interop/commit/037f902d815421ca3e03aadcfa6586846bb5d399)), closes [#409](https://github.com/ipfs/interop/issues/409)
14+
* update lockfile ([4d627a3](https://github.com/ipfs/interop/commit/4d627a3485ca8a046e6f5021bd42d2d1a48b0dac))
15+
* update lockfile ([0b6289a](https://github.com/ipfs/interop/commit/0b6289ab94a79c44738b9a225e8f0c7a0bbf7a1c))
16+
117
## [7.0.4](https://github.com/ipfs/interop/compare/v7.0.3...v7.0.4) (2021-10-25)
218

319

@@ -128,6 +144,3 @@
128144
* test against js-ipfs 0.35 ([#60](https://github.com/ipfs/interop/issues/60)) ([f42567e](https://github.com/ipfs/interop/commit/f42567e))
129145
* test with new IPFS ([47ca31b](https://github.com/ipfs/interop/commit/47ca31b))
130146
* use smaller keysize ([#14](https://github.com/ipfs/interop/issues/14)) ([9241cc7](https://github.com/ipfs/interop/commit/9241cc7))
131-
132-
133-

LICENSE

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
The MIT License (MIT)
1+
This project is dual licensed under MIT and Apache-2.0.
22

3-
Copyright (c) 2016 IPFS
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
3+
MIT: https://www.opensource.org/licenses/mit
4+
Apache-2.0: https://www.apache.org/licenses/license-2.0

LICENSE-APACHE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
2+
3+
http://www.apache.org/licenses/LICENSE-2.0
4+
5+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

LICENSE-MIT

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
The MIT License (MIT)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

0 commit comments

Comments
 (0)