Skip to content

Commit

Permalink
chore: convert to monorepo (#335)
Browse files Browse the repository at this point in the history
Since we can't release ipfs-repo-migrations without releasing ipfs-repo, put the two into a monorepo so we can release them together.
  • Loading branch information
achingbrain authored Sep 9, 2021
1 parent a00ae49 commit 0658ccc
Show file tree
Hide file tree
Showing 102 changed files with 5,607 additions and 576 deletions.
95 changes: 51 additions & 44 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,67 +12,74 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm install
- run: npm run build
- run: npm run lint
# or
# - uses: gozala/typescript-error-reporter-action@v1.0.8
- run: npx aegir build
- run: npx aegir dep-check
- uses: ipfs/aegir/actions/bundle-size@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: npm run depcheck
test-node:
needs: check
runs-on: ${{ matrix.os }}
name: Test ${{ matrix.project }} node
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [14, 16]
node: [16]
project:
- ipfs-repo
- ipfs-repo-migrations
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx aegir test -t node --bail --cov
- uses: codecov/codecov-action@v1
test-chrome:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- run: npm install
- run: npx aegir test -t browser -t webworker --bail
- uses: codecov/codecov-action@v1
test-firefox:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- run: npm install
- run: npx aegir test -t browser -t webworker --bail -- --browser firefox
test-webkit:
- run: npm run test -- --scope=${{ matrix.project }} -- -- --cov -t node
test-browser:
needs: check
runs-on: ubuntu-latest
name: test ${{ matrix.project }} ${{ matrix.browser }} ${{ matrix.type }}
strategy:
matrix:
project:
- ipfs-repo
# - ipfs-repo-migrations
browser:
- chromium
- firefox
type:
- browser
- webworker
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm install
- run: npx aegir test -t browser -t webworker --bail -- --browser webkit
# test-electron-main:
# needs: check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - run: npm install
# - run: npx xvfb-maybe aegir test -t electron-main --bail
# test-electron-renderer:
# needs: check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - run: npm install
# - run: npx xvfb-maybe aegir test -t electron-renderer --bail
- run: npm run test -- --scope=${{ matrix.project }} -- -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }}
# test-electron:
# needs: check
# runs-on: ubuntu-latest
# name: test ${{ matrix.project }} ${{ matrix.type }}
# strategy:
# matrix:
# project:
# - ipfs-repo
# - ipfs-repo-migrations
# type:
# - electron-main
# - electron-renderer
# fail-fast: true
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: 16
# - run: npm install
# - uses: GabrielBB/xvfb-action@v1
# with:
# run: npm run test -- --scope=${{ matrix.project }} -- -- -t ${{ matrix.type }} --bail
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ build
node_modules

dist

types
5 changes: 5 additions & 0 deletions LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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

http://www.apache.org/licenses/LICENSE-2.0

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.
11 changes: 4 additions & 7 deletions LICENSE → LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
The MIT License (MIT)

Copyright (c) 2015 IPFS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 0658ccc

Please sign in to comment.