Skip to content

Commit

Permalink
Merge pull request #240 from nodecross/implement-verify-verifiable-me…
Browse files Browse the repository at this point in the history
…ssage

feat: Implement verify verifiable message
  • Loading branch information
rabe1028 authored Feb 13, 2024
2 parents c72a4f6 + 80314f4 commit 9adc9d1
Show file tree
Hide file tree
Showing 24 changed files with 1,055 additions and 108 deletions.
30 changes: 30 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,40 @@ runs:
shell: bash
run: cargo install cargo-llvm-cov

- name: (setup) copy default config to home
shell: bash
run: mkdir -p ~/.config/nodex & cp test_resource/config/* ~/.config/nodex/

- name: (run) run mock server
shell: bash
run: docker compose -f test_resource/compose.yaml up -d

- name: (run) tests
shell: bash
run: cargo llvm-cov --lcov --output-path coverage.lcov

- name: (build) build agent for e2e tests
shell: bash
run: cargo build

- name: (run) run agent for e2e tests
shell: bash
run: ./target/debug/nodex-agent > log.txt 2>&1 &
env:
NODEX_DID_HTTP_ENDPOINT: http://localhost:4010
NODEX_DID_ATTACHMENT_LINK: http://localhost:4010
NODEX_HUB_HTTP_ENDPOINT: http://localhost:8020

- name: (run) e2e tests
shell: bash
working-directory: e2e
run: cargo test

- name: (run) show log of agent
shell: bash
run: cat log.txt
if: ${{ always() }}

- name: (run) upload to coveralls
uses: coverallsapp/github-action@v2
with:
Expand Down
Loading

0 comments on commit 9adc9d1

Please sign in to comment.