Skip to content

Commit

Permalink
chore: Add e2e test for verifiable-message
Browse files Browse the repository at this point in the history
  • Loading branch information
rabe1028 committed Feb 10, 2024
1 parent e91dd4c commit 9ced417
Show file tree
Hide file tree
Showing 13 changed files with 757 additions and 71 deletions.
25 changes: 25 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,35 @@ 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: (run) run agent for e2e tests
shell: bash
run: cargo run > 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
run: cd e2e && 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 9ced417

Please sign in to comment.