-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also replaces travis with gh actions BREAKING CHANGE: deep imports/requires are no longer possible
- Loading branch information
1 parent
c872b27
commit e4175cc
Showing
13 changed files
with
180 additions
and
188 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: ci | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check: | ||
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 | ||
- run: npm run dep-check | ||
test-node: | ||
needs: check | ||
runs-on: ${{ matrix.os }} | ||
name: test node ${{ matrix.node }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
node: [14, 16] | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm install | ||
- run: npm run test -- --cov -t node | ||
test-browser: | ||
needs: check | ||
runs-on: ubuntu-latest | ||
name: test ${{ matrix.browser }} ${{ matrix.type }} | ||
strategy: | ||
matrix: | ||
browser: | ||
- chromium | ||
- firefox | ||
type: | ||
- browser | ||
- webworker | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
- run: npm install | ||
- run: npm run test -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }} | ||
test-electron: | ||
needs: check | ||
runs-on: ubuntu-latest | ||
name: test ${{ matrix.type }} | ||
strategy: | ||
matrix: | ||
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 -- -t ${{ matrix.type }} --bail -f dist/cjs/node-test/*js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,4 @@ typings/ | |
# while testing npm5 | ||
package-lock.json | ||
yarn.lock | ||
types |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
'use strict' | ||
|
||
exports.ERR_IPNS_EXPIRED_RECORD = 'ERR_IPNS_EXPIRED_RECORD' | ||
exports.ERR_UNRECOGNIZED_VALIDITY = 'ERR_UNRECOGNIZED_VALIDITY' | ||
exports.ERR_SIGNATURE_CREATION = 'ERR_SIGNATURE_CREATION' | ||
exports.ERR_SIGNATURE_VERIFICATION = 'ERR_SIGNATURE_VERIFICATION' | ||
exports.ERR_UNRECOGNIZED_FORMAT = 'ERR_UNRECOGNIZED_FORMAT' | ||
exports.ERR_PEER_ID_FROM_PUBLIC_KEY = 'ERR_PEER_ID_FROM_PUBLIC_KEY' | ||
exports.ERR_PUBLIC_KEY_FROM_ID = 'ERR_PUBLIC_KEY_FROM_ID' | ||
exports.ERR_UNDEFINED_PARAMETER = 'ERR_UNDEFINED_PARAMETER' | ||
exports.ERR_INVALID_RECORD_DATA = 'ERR_INVALID_RECORD_DATA' | ||
exports.ERR_INVALID_EMBEDDED_KEY = 'ERR_INVALID_EMBEDDED_KEY' | ||
export const ERR_IPNS_EXPIRED_RECORD = 'ERR_IPNS_EXPIRED_RECORD' | ||
export const ERR_UNRECOGNIZED_VALIDITY = 'ERR_UNRECOGNIZED_VALIDITY' | ||
export const ERR_SIGNATURE_CREATION = 'ERR_SIGNATURE_CREATION' | ||
export const ERR_SIGNATURE_VERIFICATION = 'ERR_SIGNATURE_VERIFICATION' | ||
export const ERR_UNRECOGNIZED_FORMAT = 'ERR_UNRECOGNIZED_FORMAT' | ||
export const ERR_PEER_ID_FROM_PUBLIC_KEY = 'ERR_PEER_ID_FROM_PUBLIC_KEY' | ||
export const ERR_PUBLIC_KEY_FROM_ID = 'ERR_PUBLIC_KEY_FROM_ID' | ||
export const ERR_UNDEFINED_PARAMETER = 'ERR_UNDEFINED_PARAMETER' | ||
export const ERR_INVALID_RECORD_DATA = 'ERR_INVALID_RECORD_DATA' | ||
export const ERR_INVALID_EMBEDDED_KEY = 'ERR_INVALID_EMBEDDED_KEY' |
Oops, something went wrong.