Skip to content

Commit

Permalink
ci: Add mediator ci/testing to aries-vcx
Browse files Browse the repository at this point in the history
Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 committed Oct 12, 2023
1 parent 72e8246 commit 0c0a5a5
Show file tree
Hide file tree
Showing 4 changed files with 508 additions and 3 deletions.
36 changes: 35 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ jobs:
rust-toolchain-version: ${{ env.RUST_TOOLCHAIN_VERSON }}
skip-docker-setup: true
- name: "Run workspace unit tests"
run: RUST_TEST_THREADS=1 cargo test --workspace --lib --exclude aries-vcx-agent --exclude libvdrtools --exclude wallet_migrator
run: RUST_TEST_THREADS=1 cargo test --workspace --lib --exclude aries-vcx-agent --exclude libvdrtools --exclude wallet_migrator --exclude mediator

test-integration-aries-vcx:
needs: workflow-setup
Expand Down Expand Up @@ -402,6 +402,40 @@ jobs:
- name: "Run integration tests"
run: (cd agents/node/vcxagent-core && AGENCY_URL=http://localhost:8080 npm run test:integration)

test-integration-mediator:
needs: workflow-setup
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' }}
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:latest
env:
MYSQL_DATABASE: mediator-persistence.mysql
MYSQL_USER: admin
MYSQL_PASSWORD: github.ci.password.no.prod
MYSQL_ROOT_PASSWORD: github.ci.password.no.prod
ports:
- '3326:3306'
env:
MYSQL_URL: mysql://admin:github.ci.password.no.prod@localhost:3326/mediator-persistence.mysql
steps:
- name: "Git checkout"
uses: actions/checkout@v3
- name: "Setup rust testing environment"
uses: ./.github/actions/setup-testing-rust
with:
rust-toolchain-version: ${{ env.RUST_TOOLCHAIN_VERSON }}
skip-docker-setup: true
skip-vdrproxy-setup: true
- name: Install prerequisites (sqlx)
run: cargo install sqlx-cli
- name: Setup database
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run
- name: "Run mediator integration tests"
run: |
RUST_TEST_THREADS=1 cargo test --package mediator;
##########################################################################################
############################ NPMJS PUBLISHING #######################################

Expand Down
Loading

0 comments on commit 0c0a5a5

Please sign in to comment.