diff --git a/.aegir.js b/.aegir.js deleted file mode 100644 index 5eb001b..0000000 --- a/.aegir.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict' - -module.exports = { - bundlesize: { maxSize: '140kB' }, - webpack: { - node: { - // needed by the mime-types module - path: true, - // needed by readable-web-to-node-stream module used by file-type - stream: true - } - } -} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7991294 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: ci +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm install + - run: npx aegir lint + - run: npx aegir build + - run: npx aegir dep-check + test-node: + needs: check + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + node: [14, 15] + fail-fast: true + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: npm install -g @mapbox/node-pre-gyp + - run: npm install + - run: npx aegir test -t node --cov --bail + - uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 50369c9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -language: node_js -cache: npm - -stages: - - check - - test - - cov - -node_js: - - 'lts/*' - - 'node' - -os: - - linux - - osx - -before_install: - # modules with pre-built binaries may not have deployed versions for bleeding-edge node so this lets us fall back to building from source - - npm install -g node-pre-gyp - -script: npx nyc -s npm run test:node -- --bail -after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov - -jobs: - include: - - stage: check - script: - - npx aegir dep-check - - npm run lint - - npm run build - -notifications: - email: false diff --git a/package.json b/package.json index 0a74317..e63e66a 100644 --- a/package.json +++ b/package.json @@ -36,14 +36,14 @@ "filesize": "^6.1.0", "it-buffer": "^0.1.1", "it-concat": "^1.0.0", - "it-reader": "^2.1.0", - "it-to-stream": "^0.1.1", + "it-reader": "^3.0.0", + "it-to-stream": "^1.0.0", "mime-types": "^2.1.27", "multihashes": "^4.0.2", "p-try-each": "^1.0.1" }, "devDependencies": { - "aegir": "^32.0.2", + "aegir": "^33.0.0", "cids": "^1.0.0", "get-stream": "^6.0.0", "ipfs": "^0.54.2", diff --git a/test/fixtures/.gitattributes b/test/fixtures/.gitattributes new file mode 100644 index 0000000..50b7936 --- /dev/null +++ b/test/fixtures/.gitattributes @@ -0,0 +1,5 @@ +# Make sure fixtures have correct line endings on windows + +*.txt text eol=lf +*.svg text eol=lf +*.html text eol=lf