Skip to content

Commit

Permalink
Merge branch 'WebOfTrust:main' into feat/singleSigIpexApplyOfferAgree
Browse files Browse the repository at this point in the history
  • Loading branch information
iFergal authored May 2, 2024
2 parents e27005a + fddaff2 commit 9e218ad
Show file tree
Hide file tree
Showing 178 changed files with 2,224 additions and 43,025 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,34 @@ jobs:
run: npm run build

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test:
name: Run integration test
runs-on: ubuntu-latest
name: Run integration test using keria:${{ matrix.keria-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
keria-version: ['latest']
node-version: ['20']
env:
KERIA_IMAGE_TAG: ${{ matrix.keria-version }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: install deps
run: npm ci
- name: Build
run: npm run build
- name: Print docker compose config
run: docker compose config
- name: Start dependencies
run: docker compose up deps --pull always
- name: Run integration test
Expand Down
55 changes: 32 additions & 23 deletions .github/workflows/update-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,44 @@ on:
branches:
- 'main'
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
update:
name: Updater documentation
build:
name: Build docs

runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v2

- uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.12.1'
cache: 'npm'

- name: build
node-version: "20"
cache: "npm"
- name: Install dependencies
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout docs
npm cache clean --force
npm set registry https://registry.npmjs.org/
npm i
npx typedoc src/index.ts
git add .
git commit -a -m "Update documentation"
- name: Push changes
uses: ad-m/github-push-action@master
npm ci
- name: Build documentation
run: npx typedoc src/index.ts
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
path: ./docs

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ signify-ts-deps-1 | Dependencies running
signify-ts-deps-1 exited with code 0
```

It is possible to change the keria image by using environment variables. For example, to use weboftrust/keria:0.1.3, do:

```bash
export KERIA_IMAGE_TAG=0.1.3
docker compose pull
docker compose up deps
```

To use another repository, you can do:

```bash
export KERIA_IMAGE=gleif/keria
docker compose pull
docker compose up deps
```

**Important!** The integration tests runs on the build output in `dist/` directory. Make sure to run build before running the integration tests.

```bash
Expand All @@ -101,14 +117,6 @@ TEST_ENVIRONMENT=local npx jest examples/integration-scripts/credentials.test.ts
This changes the discovery urls to use `localhost` instead of the hostnames inside the docker network.
### Old integration scripts
To run any of the old integration scripts that has not yet been converted to an integration test. Use `ts-node-esm`
```bash
npx ts-node-esm examples/integration-scripts/challenge.ts
```

# Diagrams
Account Creation Workflow
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- 7723:7723

keria:
image: weboftrust/keria:latest
image: ${KERIA_IMAGE:-weboftrust/keria}:${KERIA_IMAGE_TAG:-latest}
environment:
- KERI_AGENT_CORS=1
- KERI_URL=http://keria:3902
Expand Down
1 change: 0 additions & 1 deletion docs/.nojekyll

This file was deleted.

43 changes: 0 additions & 43 deletions docs/assets/highlight.css

This file was deleted.

58 changes: 0 additions & 58 deletions docs/assets/main.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/search.js

This file was deleted.

Loading

0 comments on commit 9e218ad

Please sign in to comment.