-
Notifications
You must be signed in to change notification settings - Fork 36
move signify repository into keria #398
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
Open
lenkan
wants to merge
591
commits into
WebOfTrust:main
Choose a base branch
from
lenkan:move-signify-repository
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
591 commits
Select commit
Hold shift + click to select a range
d966d45
Merge pull request #1 from kentbull/single-issuer-holder-ipex-script
lenkan 30324cc
add credentials query and print credential
lenkan f10b8bb
fix formatting with prettier
lenkan c0137c9
fix credentialing test
lenkan 244aafa
add tests for utils serializers
lenkan 9f020f2
Merge pull request #126 from lenkan/single-issuer-holder-ipex-script
rodolfomiranda 8cd2ad4
remove unused dependencies, move dev dependencies
lenkan d5e041a
Merge pull request #125 from nkongsuwan/patch-1
rodolfomiranda 031fde6
Merge pull request #128 from lenkan/remove-unused-dependencies
rodolfomiranda 769a5e0
copied
96dcc49
fix seqner
38f7cdf
fix tholder test
3a41dce
test coverage
7a378f4
Remove name param from Credentials.list()
kentbull a9cc5b9
Merge pull request #135 from kentbull/credential-query-endpoint
pfeairheller 370d7b8
Merge pull request #133 from rodolfomiranda/grant_admit
rodolfomiranda 4de1c27
use esbuild, tsc and eslint instead of tsdx
lenkan f72cc72
Update credentials.ts
nkongsuwan 556d47c
update example script to support ipex
nkongsuwan cd401c2
Clarify test flow with better logs and readable names
kentbull be31b15
add join function in groups class to join multisig rotation event
Arsh-Sandhu 8b9622a
Merge pull request #134 from lenkan/tsc-2
rodolfomiranda 02ffe8f
Merge pull request #137 from nkongsuwan/update-example-credentials-ipex
rodolfomiranda 645d665
Merge pull request #139 from Arsh-Sandhu/migrate-scripts
rodolfomiranda 8cbaab3
fix single issuer holder script
lenkan 27faca2
fix: remove name parameter from exchanges.get method
lenkan bcd83fc
fix multisig.ts usage - remove name param (#2)
kentbull e972f8f
Draft for running integration tests
lenkan e5d39b9
Merge pull request #143 from lenkan/test-integration
rodolfomiranda f1585fc
add witness and randy integration tests
lenkan da2e82d
Update examples/integration-scripts/externalModule.test.ts
lenkan 2d3443f
Merge pull request #146 from lenkan/witness-test
pfeairheller a7b6b6e
add multisig to integration tests
lenkan 11198c2
add instructions for integration tests to readme
lenkan abfb94c
add a way to resolve to local environment instead of docker
lenkan adb4d73
Merge pull request #147 from lenkan/multisig-integration-test
pfeairheller 4afcb12
Merge pull request #151 from lenkan/readme-test-instructions
pfeairheller 12acc53
enable integration tests for multisig.ts and credentials.ts
lenkan f28d87f
add witness identifiers
psteniusubi 74c4fe2
Implement test-setup
psteniusubi 4295964
ixn and rot integration tests
psteniusubi 1cde65e
fix config file, keria was not accepting
psteniusubi 1ceebc7
add preset property
psteniusubi 6be5208
fix identifiers
psteniusubi e6e544f
updates
psteniusubi 97a1825
Merge pull request #150 from lenkan/credentialing-cleanup
pfeairheller 8be00bf
Merge pull request #152 from psteniusubi/feat-integration-test-setup
pfeairheller 8279f85
run npm run lint -- --fix
lenkan c8c7c24
Merge pull request #154 from lenkan/run-lint-fix
pfeairheller 15c8259
add npm ci, linting, format check to workflow
lenkan f790e63
Merge pull request #153 from lenkan/update-workflow
pfeairheller 1d8b39f
Fix serializeACDCAttachment to work with the correct anchor per type.
pfeairheller e9e045c
Run prettier
pfeairheller f4e4400
Merge pull request #156 from pfeairheller/fix-grant
lenkan 85e0f5c
convert remaining integration-scripts to tests
lenkan acfa4c6
fix: remove TextEncoder import from node:util
lenkan 3039ace
Merge pull request #161 from lenkan/move-remaining-integration-tests
lenkan 373e9c7
Adding verifier to single issuer script
pfeairheller facf020
Addition of submitGrant that calls the correct endpoint to perform a …
pfeairheller c6e8a4c
Getting unit tests to run locally and successfully
pfeairheller ed57182
Prettier
pfeairheller b006fdd
add logs
lenkan 507ed56
add timeouts
lenkan e54ea2b
remove oobis
lenkan 73cd2c1
increase timeout
lenkan 318c755
One script change to get local execution to work.
pfeairheller 272ac28
Add test coverage for new grant methods.
pfeairheller 11b1d37
Pretty
pfeairheller c0727b6
Merge pull request #166 from pfeairheller/feat-verifier
pfeairheller 34e46b3
suggestion: bail on first failing integration test
lenkan 1d27012
using jest config to configure default timeout for integration tests
lenkan 600e08b
add integration test for issuing chained credential
lenkan 0f27cc2
Move example app to other repo
kentbull 9a237ea
update package-lock after removal of signify-react-ts
lenkan 1cae834
Merge pull request #172 from lenkan/remove-signify-react-ts-dependencies
lenkan 3573bc0
Merge pull request #168 from lenkan/chore-bail-on-integration-test
pfeairheller 9698f50
Merge pull request #144 from lenkan/single-issuer-chained-credential
pfeairheller a271dac
Merge pull request #169 from lenkan/configure-default-test-tiemout
pfeairheller d977137
use waitOperation utility function in multisig test
lenkan 8a015c2
Merge pull request #167 from lenkan/chore-use-wait-operation
pfeairheller cedbd38
Moving these scripts to new repo at WebOfTrust/signify-integration
pfeairheller 7dac183
Resolve conflicts.
pfeairheller a3395cb
Re-run npm i... again
pfeairheller cfb001b
Merge pull request #173 from pfeairheller/feat-remove-scripts
pfeairheller febfcb0
using @nobles/hashes
AlexAndrei98 858dea2
Merge pull request #174 from lenkan/noble-hashes-lenkan
lenkan 400d561
add npm audit, remove vulnerable packages
lenkan 623f479
Create delegation-multisig.ts
nkongsuwan a8de62f
Show Python container logs locally
kentbull 517b981
Merge pull request #178 from kentbull/enable-local-container-logs
lenkan d311c1e
Merge pull request #175 from lenkan/fix-vulnerabilities
lenkan 421232d
Merge pull request #148 from nkongsuwan/example-delegation-multisig
lenkan f52afaf
Create delegation-multisig.ts
nkongsuwan d421454
update with @lenkan suggestion
nkongsuwan a541d94
Merge pull request #177 from nkongsuwan/fix-challenge-test
lenkan eacf6bb
remove endless loops from tests
lenkan 2a95620
make delegation-multisig.test faster
lenkan 6673673
refactor credential tests
lenkan a58fa8e
add comments to test
lenkan 44a1386
change setup code
lenkan a21dc14
add step for revoking QVI credential
lenkan 8b20807
Merge pull request #182 from lenkan/credential-test
lenkan 2ed3909
create initial version of multisig-holder script
Arsh-Sandhu 1abc08c
add more logs to debug multisig-holder.test.ts script
Arsh-Sandhu ad5dc1a
format code
Arsh-Sandhu b4b3bf3
refractor multisig-holder test
Arsh-Sandhu 99c946d
Merge branch 'development' into multisig-holder
Arsh-Sandhu 8d010c9
fix privacy in issuance
nkongsuwan b6d7059
refractor: use multisig holder aid to send cred grant
Arsh-Sandhu 33d74b9
Update keyState call to use hex string instead of int for sequence nu…
pfeairheller f945bf1
prettier
pfeairheller f9b71bb
Merge pull request #195 from pfeairheller/fix-sn-snh
pfeairheller 4c081a1
delegate test
psteniusubi e144f2e
cleanup
psteniusubi 5ab8b3d
cleanup
psteniusubi 2272f43
fix code style issues
psteniusubi 926b76b
issue #145 - integration test to reproduce
psteniusubi aa2d651
change number to hex string
psteniusubi a3665f5
Merge branch 'development' into multisig-holder
Arsh-Sandhu be1d8e6
Merge pull request #157 from psteniusubi/feat-integration-test-single…
pfeairheller 41b996a
Merge pull request #191 from Arsh-Sandhu/multisig-holder
pfeairheller 0a250f5
RE-enable witnesses for multisig delegation test
pfeairheller 3941ab4
Merge pull request #196 from pfeairheller/fix-delegation-witnesses
pfeairheller c64e006
Merge pull request #194 from nkongsuwan/close-issue-186
pfeairheller 180645b
Delegated rotation for single sig AID integration test.
pfeairheller 6982001
Fixing delegation tests to work correctly now.
pfeairheller 6aa421a
prettier
pfeairheller 5be1819
Merge pull request #197 from pfeairheller/feat-delegate-rot
pfeairheller 3532e72
update credential rules type to support value as string
Arsh-Sandhu faeebad
Merge pull request #198 from provenant-dev/update-cred-rules-type
pfeairheller 2b76eff
fix signature of KeyStates.query
psteniusubi 11bf30b
uses KeyStates.query with seal
psteniusubi 0d3212f
add one more query test
psteniusubi 12c53ab
run npm pretty
psteniusubi d640057
Merge pull request #199 from psteniusubi/fix-query-anchor
pfeairheller c91be0b
add test for singlesig vlei
nkongsuwan 67dacd6
Merge pull request #200 from nkongsuwan/singlesig-vlei-issuance-test
pfeairheller 78d8fb0
chore: add http status information in error message
lenkan dfd37b0
add unit test for http status info
lenkan 8c030f2
fix: remove hardcoded toad, use function parameter
lenkan 8b2fa68
Merge pull request #206 from lenkan/fix-hardcoaded-toad
pfeairheller 95981e4
Merge pull request #203 from lenkan/add-error-info
pfeairheller 1e258b8
Update challenge and credential endpoints to remove unneeded path par…
pfeairheller 72df42f
pretty
pfeairheller b98dd02
Merge pull request #209 from pfeairheller/feat-reroute
pfeairheller 1be8989
fix: rotate should use the next threshold as default value for rotate
lenkan bfbe518
explicitly declare identifier dependencies interface
lenkan 2082760
Merge pull request #208 from lenkan/fix-nsith-threshold
lenkan 5292b24
Fix flaky integration tests by waiting for operations (#210)
psteniusubi a0808b2
upgrade workflow actions, add node 20 to test matrix
lenkan 94fa319
add utility for multisig inception, test for members endpoint
lenkan 433a968
Merge pull request #211 from lenkan/chore-upgrade-workflow
pfeairheller 7e40b4b
Merge pull request #212 from lenkan/multisig-inception-utils
pfeairheller 5dda061
fix sn to int parsing to use base 16
lenkan a646807
add test for aid state s > 10
lenkan 9bae76d
fix string template
lenkan 972d509
Update version for next release 0.2.0
pfeairheller 84657cd
Merge branch 'release-0.2.0'
pfeairheller cedee3a
Merge branch 'release-0.2.0' into development
pfeairheller b9b1029
fix: remove window.Buffer assignment
lenkan ec97594
Merge pull request #214 from lenkan/fix-remove-window-buffer-assignment
pfeairheller aadfce0
Merge pull request #216 from lenkan/fix-int-parsing
pfeairheller d6dac2c
Multisig test of credential revocation. Several fixes to revocation …
pfeairheller 5795091
prettier
pfeairheller b7ded24
Fix credentials test broken from revoke return.
pfeairheller 6d2b51c
Rev version number
pfeairheller 3ec43a2
Merge pull request #225 from pfeairheller/feat-multisig-rev
pfeairheller 236498c
Merge branch 'feat-multisig-rev' into development
pfeairheller a50faf5
chore: upgrade math.js
lenkan 6574f30
Merge pull request #224 from lenkan/upgrade-mathjs
pfeairheller e2b2f6e
simplify prettier setup (#223)
lenkan e2345e8
Add method to rename registry (#232)
Arsh-Sandhu e8b66e9
fix: remove urlsafe-base64 dependency (#218)
lenkan 4af063e
update to newer role name (#238)
2byrds a49db7f
fix: cannot set salts for credential creation (suggestion) (#222)
lenkan ac6dac4
URL enconding of AID alias name in rest calls (#233)
rodolfomiranda 65d5b83
add integration test for multisig vlei (#207)
nkongsuwan a6949da
use named imports from mathjs to reduce bundle size (#235)
lenkan f1f1a89
Update main.yml (#247)
m00sey 72826cf
add integration test matrix for keria version (#245)
lenkan 39580ef
fix flaky integration test (#244)
lenkan 39ca034
Update randomPasscode to return 21 characters (#243)
lenkan 42d3b14
update keria test matrix to only use latest for now (#249)
lenkan 4c0072f
feat: method waiting for long running operation (#236)
lenkan 334438c
Merge branch 'development'
lenkan fddaff2
Fix docs publishing (#250)
lenkan 651bad6
Fix size from bytes instead of string. Need for serder with special c…
rodolfomiranda 2b6a2fd
fix credentialing field ordering and related singlesig-vlei-issuance …
2byrds 014b2bc
fix: use cesrnumber when parsing sn in rotate event (#257)
lenkan 7d6ae9f
Add type information to keeping module (#251)
lenkan b8605a5
fix: remove development from workflow triggers (#262)
lenkan 2d23251
fix: do not include src files in npm package (#261)
lenkan 6113497
signedFetch more generic/configurable aligning it with fetch api (#259)
2byrds 3e96c1e
fix: delete contact by prefix (#264)
iFergal 2517469
Fix non-transferable prefix (#265)
rodolfomiranda fcebfa0
fix npm package warning (#266)
lenkan 304b0ee
fix: export hab state types from main export (#263)
lenkan cf1fc64
add workflow for publishing npm package (#260)
lenkan 140ecd7
feat: single-sig IPEX apply, offer, agree (#234)
iFergal e7aaf3c
Revert "feat: single-sig IPEX apply, offer, agree" (#268)
iFergal 850af59
Fix/test del rot multisig more (#267)
2byrds 1212b54
feat: IPEX apply, offer, agree (#272)
iFergal ce3614c
add integration test for aid to join multisig (#258)
daviddm 1bc8a01
add assertion for correct resolution of delegatee oobi (#252)
lenkan 2836523
Fix salty and randy constructors transferable flag (#277)
rodolfomiranda 5801e63
chore: enforce linting rules in tests (#279)
lenkan 8597038
chore: implement typings in ending module (#280)
lenkan 1b747f8
chore: add typings for contacts (#275)
lenkan 32ceda1
chore: remove obsolete request and present methods (#287)
lenkan 36bed7b
feat: rename managed identifier (#283)
iFergal 5536180
add issue templates (#288)
lenkan 07abd31
feat: get credential registry state (tever vcstate) (#282)
iFergal c13b6e8
Updated cross-spawn library due to sec vulnerabilty. (#292)
daidoji 2bf0df1
Update README.md with simple example and ready() (#291)
daidoji e8a4047
feat: agent config interface (#290)
iFergal f368351
simplify docker compose (#293)
lenkan 4f51f4e
feat: delete credential by said (#297)
iFergal 332a46b
chore: enrich package.json (#298)
kentbull cddb007
fix: EventResult should await OK response (#299)
iFergal 1e451d1
chore: update package.json for 0.3.0-rc1 (#301)
kentbull dbffa56
refactor: align object names with KERIpy and add function docs (#307)
kentbull 1ab8d72
refactor: ked -> sad, ident -> proto
kentbull f59a9ba
fix: npm audit failures on esbuild and mermaid
kentbull 0e33a6b
chore: upgrade typescript and old dependencies (#316)
lenkan 106054a
fix: remove incorrect accept header for issue or revoke credential (#…
iFergal 6d5e455
simplify project folder structure (#318)
lenkan c04f9a0
add npm publish script for easier npm publish (#317)
lenkan 0ea4966
chore: remove outdated dependency secp256r1 (#320)
lenkan f974648
chore: remove buffer dependency (#321)
lenkan 156a647
fix: remove useless buffer conversion (#323)
lenkan 6ea0158
fix: npm audit (#325)
lenkan 226eb72
chore(deps): bump vite from 6.2.3 to 6.2.4 (#326)
dependabot[bot] 9ec2bf4
chore(deps): bump vite from 6.2.4 to 6.2.6 (#329)
dependabot[bot] 78d0a69
chore(deps): bump vite from 6.2.6 to 6.3.4 (#333)
dependabot[bot] 5bf2e17
refactor: remove redundant test helpers, and use them more (#336)
iFergal ac6011f
npm audit fix (#345)
lenkan 080d863
adds MAINTAINERS.md
m00sey e796d44
adds MAINTAINERS.md
m00sey d48adc0
adds MAINTAINERS.md
m00sey efd694e
chore(deps): bump vite from 6.3.4 to 6.3.6 (#346)
dependabot[bot] fc61311
perf: avoid constantly re-initializing client resources (#342)
Sotatek-DukeVu fb5d5ad
auto generate credential types from KERIA OpenAPI spec (#337)
Sotatek-Patrick-Vu a138695
chore(deps): bump vite from 7.1.6 to 7.1.11 (#349)
dependabot[bot] bf0c856
aiding.py type hints and auto-generated OpenAPI specs (#350)
Sotatek-Patrick-Vu 6f88b5b
move files to prepare for repository move
lenkan af18bec
Merge remote-tracking branch 'signify-ts/move-signify' into move-sign…
lenkan 92be709
chore: adapt workflows to merged repository
lenkan 435e8a8
fix: running tests on host network only
lenkan 7faad76
Revert "fix: KERIA server exits (exit code 1) on admit call with 'Non…
lenkan a51123e
fix: add retry for registry list
lenkan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,132 @@ | ||
| name: Publish | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| env: | ||
| DOCKER_REGISTRY: ${{ vars.DOCKER_REGISTRY || 'docker.io' }} | ||
| DOCKER_IMAGE_NAME: ${{ vars.DOCKER_IMAGE_NAME || 'weboftrust/keria' }} | ||
| NPM_PACKAGE_NAME: ${{ vars.NPM_PACKAGE_NAME || 'signify-ts' }} | ||
| RELEASE_TAG: ${{ inputs.latest == true && 'latest' || 'dev' }} | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "main" | ||
| workflow_dispatch: | ||
| inputs: | ||
| latest: | ||
| description: "Publish :latest tag" | ||
| type: boolean | ||
| required: false | ||
| default: false | ||
| dryrun: | ||
| description: "Dry run, don't push" | ||
| type: boolean | ||
| required: false | ||
| default: false | ||
|
|
||
| jobs: | ||
| publish_docker: | ||
| name: Publish docker image | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Checkout out the repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Log in to container registry ${{ env.DOCKER_REGISTRY }} | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| # Uses github tokens for GHCR, otherwise configured repository secrets | ||
| # This way, forks can be configured to push their own images without | ||
| # having to modify the workflow. | ||
| registry: ${{ env.DOCKER_REGISTRY }} | ||
| username: ${{ env.DOCKER_REGISTRY == 'ghcr.io' && github.actor || secrets.DOCKER_USERNAME }} | ||
| password: ${{ env.DOCKER_REGISTRY == 'ghcr.io' && secrets.GITHUB_TOKEN || secrets.DOCKER_PASSWORD }} | ||
|
|
||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Set up Docker buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Setup uv | ||
| uses: astral-sh/setup-uv@v3 | ||
| with: | ||
| version: "0.9.5" | ||
|
|
||
| - name: Extract version | ||
| run: | | ||
| echo "VERSION=$(./version.sh)" >> $GITHUB_ENV | ||
|
|
||
| - name: Extract metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: | | ||
| name=${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }} | ||
| tags: | | ||
| type=ref,event=branch | ||
| type=raw,value=${{ env.VERSION }} | ||
| type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' && inputs.latest == true }} | ||
|
|
||
| - name: Build and push Docker image | ||
| id: build | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| platforms: linux/amd64,linux/arm64 | ||
| push: ${{ github.event_name != 'workflow_dispatch' || inputs.dryrun != true }} | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
|
|
||
| - name: Create summary | ||
| run: | | ||
| echo "## Docker Image Published 🐳" >> $GITHUB_STEP_SUMMARY | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
| echo "${{ steps.meta.outputs.tags }}" | while IFS= read -r tag; do | ||
| echo "docker pull $tag" >> $GITHUB_STEP_SUMMARY | ||
| done | ||
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
|
|
||
| publish_npm: | ||
| name: Publish NPM | ||
| permissions: | ||
| contents: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22" | ||
| cache: "npm" | ||
| registry-url: "https://registry.npmjs.org" | ||
|
|
||
| - name: Extract version | ||
| run: | | ||
| echo "VERSION=$(./version.sh)" >> $GITHUB_ENV | ||
|
|
||
| - name: Publish package | ||
| working-directory: ./packages/signify-ts | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| NPM_PUBLISH_TAG: ${{ inputs.latest == true && 'latest' || 'dev' }} | ||
| NPM_PACKAGE_VERSION: ${{ env.VERSION }} | ||
| NPM_PACKAGE_NAME: ${{ env.NPM_PACKAGE_NAME }} | ||
| DRY_RUN: ${{ inputs.dryrun || '' }} | ||
| run: ./publish.sh | ||
|
|
||
| - name: Create summary | ||
| run: | | ||
| echo "## NPM Package Published 📦" >> $GITHUB_STEP_SUMMARY | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
| echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY | ||
| echo "npm install ${{ env.NPM_PACKAGE_NAME }}@${{ env.VERSION }}" >> $GITHUB_STEP_SUMMARY | ||
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
This file contains hidden or 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 hidden or 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,40 @@ | ||
| name: GitHub Actions for Signify TS | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "main" | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup node.js | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Lint changes | ||
| run: npm run lint | ||
|
|
||
| - name: Check formatting | ||
| run: npm run format:check | ||
|
|
||
| - name: Build | ||
| run: npm run build | ||
|
|
||
| - name: Run tests | ||
| run: npm test | ||
|
|
||
| - name: Build docker | ||
| run: docker compose up --build --wait | ||
|
|
||
| - name: Run integration test | ||
| run: npm run test:integration |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -130,3 +130,6 @@ dmypy.json | |
|
|
||
| # IntelliJ files | ||
| .idea/ | ||
|
|
||
|
|
||
| node_modules/ | ||
File renamed without changes.
This file contains hidden or 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,10 +1,77 @@ | ||
| x-healthcheck: &healthcheck | ||
| interval: 2s | ||
| timeout: 3s | ||
| retries: 5 | ||
| start_period: 2s | ||
|
|
||
| x-python-env: &python-env | ||
| PYTHONUNBUFFERED: 1 | ||
| PYTHONIOENCODING: UTF-8 | ||
|
|
||
| configs: | ||
| wan.json: | ||
| content: | | ||
| { | ||
| "dt": "2022-01-20T12:57:59.823350+00:00", | ||
| "wan": { | ||
| "dt": "2022-01-20T12:57:59.823350+00:00", | ||
| "curls": ["http://127.0.0.1:5642/"] | ||
| } | ||
| } | ||
| wil.json: | ||
| content: | | ||
| { | ||
| "dt": "2022-01-20T12:57:59.823350+00:00", | ||
| "wil": { | ||
| "dt": "2022-01-20T12:57:59.823350+00:00", | ||
| "curls": ["http://127.0.0.1:5643/"] | ||
| } | ||
| } | ||
| wes.json: | ||
| content: | | ||
| { | ||
| "dt": "2022-01-20T12:57:59.823350+00:00", | ||
| "wes": { | ||
| "dt": "2022-01-20T12:57:59.823350+00:00", | ||
| "curls": ["http://127.0.0.1:5644/"] | ||
| } | ||
| } | ||
|
|
||
| services: | ||
| keria: | ||
| build: | ||
| context: . | ||
| dockerfile: ./images/keria.dockerfile | ||
| build: ./ | ||
| environment: | ||
| <<: *python-env | ||
| volumes: | ||
| - ./scripts/keri/cf/keria.json:/keria/config/keri/cf/keria.json | ||
| command: start --config-dir /keria/config --config-file keria | ||
| network_mode: host | ||
| healthcheck: | ||
| test: curl http://localhost:3902/health | ||
| interval: 5s | ||
| timeout: 2s | ||
| retries: 10 | ||
| <<: *healthcheck | ||
|
|
||
| vlei-server: | ||
| image: gleif/vlei:0.2.0 | ||
| environment: | ||
| <<: *python-env | ||
| command: vLEI-server -s ./schema/acdc -c ./samples/acdc/ -o ./samples/oobis/ | ||
| healthcheck: | ||
| test: curl -f http://localhost:7723/oobi/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao | ||
| <<: *healthcheck | ||
| network_mode: host | ||
|
|
||
| witness-demo: | ||
| image: weboftrust/keri-witness-demo:1.1.0 | ||
| environment: | ||
| <<: *python-env | ||
| healthcheck: | ||
| test: curl -f http://localhost:5642/oobi | ||
| <<: *healthcheck | ||
| configs: | ||
| - source: wan.json | ||
| target: /keripy/scripts/keri/cf/main/wan.json | ||
| - source: wes.json | ||
| target: /keripy/scripts/keri/cf/main/wes.json | ||
| - source: wil.json | ||
| target: /keripy/scripts/keri/cf/main/wil.json | ||
| network_mode: host |
Oops, something went wrong.
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.
In case we deploy a release a new version of KERIA that has no changes in Signify - will npm artifacts get overiden with newer builds? And vice versa
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.
NPM does not allow overwriting, you'd have to change the version. In the particular case you mentioned both signify and keria would get a new release (I.e. x.y.z-dev.commitsha). In case of 'latest' releases, you'd have to increment the version in pyproject.toml between each publish.
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.
OK - docker registries probably do though right? (in case Signify is bumped but not KERIA)
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.
Yes, Docker hub and GHCR does anyway. But, just to be clear, the workflow I wrote for publishing will use the same version for signify-ts and keria.
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.
Right, I looked a bit too quickly and didn't realise it was applied to both.
Won't that become problematic if we want semantic versioning on APIs? I don't expect every PR will have KERIA and Signify changes - there may be bug fixes or breaking changes in either that don't impact the other (or aren't breaking, for example)