New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor to reflect did-io v1.0, crypto-ld and jsigs. #56
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
6b47b05
Update dependencies to newest did-io, crypto-ld and jsigs.
dmitrizagidulin 122da50
Update dependencies, rename test dir.
dmitrizagidulin 71a044f
Switch to Github CI workflow.
dmitrizagidulin 10700cd
Add karma config.
dmitrizagidulin 8b8368e
Refactor VeresOneDriver.
dmitrizagidulin 436b6a2
Implement generate(), add tests.
dmitrizagidulin 75c5a6e
Refactor, move validation methods to driver.
dmitrizagidulin aaf0bf7
Update driver, refactor, update changelog.
dmitrizagidulin d68c658
Refactor _keyId.
JSAssassin d57159f
Use fromKeyDocument() for key documents in get().
dmitrizagidulin ca97c30
Change back `cryptoLd.fromKeyDocument` to `cryptoLd.from`.
JSAssassin 5982170
Update changelog, compatibility list.
dmitrizagidulin d938e81
Fix veres-one-context dep.
dmitrizagidulin 421328e
Remove duplicate key objects and use latest zcapld.
JSAssassin 2a11641
Use the correct version for base64url-universal.
JSAssassin 41af801
Re-enable computeId tests.
dmitrizagidulin 0b0f950
Fix up lint issues, pass tests.
dmitrizagidulin 457ce9d
Disable CI karma tests.
dmitrizagidulin 8d354db
Update compatibility list.
dmitrizagidulin fe9b136
Remove commented out directive.
dmitrizagidulin File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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,7 +1,13 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['eslint-config-digitalbazaar'], | ||
extends: [ | ||
'eslint-config-digitalbazaar' | ||
], | ||
env: { | ||
node: true | ||
node: true, | ||
browser: true | ||
}, | ||
ignorePatterns: ['dist/'], | ||
rules: { | ||
} | ||
} | ||
}; |
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,73 @@ | ||
name: Node.js CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- name: Run eslint | ||
run: npm run lint | ||
test-node: | ||
runs-on: ubuntu-latest | ||
needs: [lint] | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- name: Run test with Node.js ${{ matrix.node-version }} | ||
run: npm run test-node | ||
# test-karma: | ||
# runs-on: ubuntu-latest | ||
# needs: [lint] | ||
# timeout-minutes: 10 | ||
# strategy: | ||
# matrix: | ||
# node-version: [14.x] | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Use Node.js ${{ matrix.node-version }} | ||
# uses: actions/setup-node@v1 | ||
# with: | ||
# node-version: ${{ matrix.node-version }} | ||
# - run: npm install | ||
# - name: Run karma tests | ||
# run: npm run test-karma | ||
coverage: | ||
needs: [test-node, test-karma] | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- name: Generate coverage report | ||
run: npm run coverage-ci | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage/lcov.info | ||
fail_ci_if_error: true |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are karma tests broken at the moment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gannan08 - yeah, they are. This lib didn't have a karma suite before; I started to add it in this PR, but it still needs more work.