This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: vc status client supports DID+IdentityHub resolution (#335)
Signed-off-by: Filip Burlacu <Filip.Burlacu@gendigital.com>
- Loading branch information
Showing
11 changed files
with
1,318 additions
and
20 deletions.
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# | ||
# Copyright Gen Digital Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
name: vc-status | ||
on: | ||
push: | ||
paths: | ||
- 'component/vc/status/**' | ||
pull_request: | ||
paths: | ||
- 'component/vc/status/**' | ||
jobs: | ||
linter: | ||
name: Go linter | ||
timeout-minutes: 10 | ||
env: | ||
LINT_PATH: component/vc/status | ||
GOLANGCI_LINT_IMAGE: "golangci/golangci-lint:v1.50.0" | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checks linter | ||
timeout-minutes: 10 | ||
run: make lint | ||
unitTest: | ||
name: Unit test | ||
runs-on: ubuntu-18.04 | ||
timeout-minutes: 15 | ||
env: | ||
UNIT_TESTS_PATH: component/vc/status | ||
steps: | ||
- name: Setup Go 1.19 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.19 | ||
id: go | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Run unit test | ||
timeout-minutes: 15 | ||
run: make unit-test | ||
|
||
- name: Upload coverage to Codecov | ||
timeout-minutes: 10 | ||
if: github.repository == 'hyperledger/aries-framework-go-ext' | ||
uses: codecov/codecov-action@v1.0.14 | ||
with: | ||
file: ./coverage.out | ||
|
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,109 @@ | ||
# | ||
# Copyright Gen Digital Inc. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
run: | ||
concurrency: 4 | ||
deadline: 3m | ||
issues-exit-code: 1 | ||
tests: true | ||
build-tags: [""] | ||
skip-dirs: [""] | ||
|
||
output: | ||
format: colored-line-number | ||
print-issued-lines: true | ||
print-linter-name: true | ||
|
||
linters-settings: | ||
errcheck: | ||
check-type-assertions: true | ||
check-blank: true | ||
govet: | ||
check-shadowing: true | ||
gofmt: | ||
simplify: true | ||
goimports: | ||
local-prefixes: github.com/hyperledger/aries-framework-go-ext | ||
gci: | ||
sections: | ||
- standard | ||
- default | ||
- prefix(github.com/hyperledger/aries-framework-go-ext) | ||
- dot | ||
gocyclo: | ||
min-complexity: 10 | ||
dupl: | ||
threshold: 500 | ||
goconst: | ||
min-len: 3 | ||
min-occurrences: 3 | ||
misspell: | ||
# default locale is a neutral variety of English. | ||
locale: | ||
ignore-words: [] | ||
lll: | ||
line-length: 120 | ||
tab-width: 1 | ||
unused: | ||
check-exported: false | ||
unparam: | ||
check-exported: false | ||
nakedret: | ||
max-func-lines: 0 | ||
gocritic: | ||
enabled-tags: | ||
- diagnostic | ||
- performance | ||
- style | ||
- opinionated | ||
disabled-checks: | ||
- whyNoLint # TODO enable. | ||
funlen: | ||
lines: 60 | ||
statements: 40 | ||
wsl: | ||
strict-append: true | ||
allow-assign-and-call: true | ||
allow-multiline-assign: true | ||
allow-case-traling-whitespace: true | ||
allow-cuddle-declarations: false | ||
godot: | ||
check-all: false | ||
gomoddirectives: | ||
replace-local: true | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- goerr113 | ||
- paralleltest | ||
- exhaustivestruct | ||
- exhaustruct | ||
- interfacer # deprecated by the author https://github.com/mvdan/interfacer#interfacer | ||
- scopelint # deprecated by the author https://github.com/kyoh86/scopelint#obsoleted | ||
- maligned # deprecated by the author https://github.com/mdempsky/maligned | ||
- cyclop # TODO consider replacing gocyclo with cyclop | ||
- ifshort # TODO enable | ||
- wrapcheck # TODO enable | ||
- forbidigo # TODO enable | ||
- typecheck | ||
|
||
issues: | ||
exclude-use-default: false | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- dupl | ||
- funlen | ||
- gomnd | ||
- path: / | ||
linters: | ||
- exhaustruct | ||
- typecheck | ||
|
||
exclude: | ||
- Line contains TODO/BUG/FIXME | ||
- unnamedResult |
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
Oops, something went wrong.