refactor: use BaseWallet instead of a specific wallet type #400
Workflow file for this run
This file contains 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
name: CI mediator | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
paths: | |
- 'aries/agents/rust/mediator/**' | |
env: | |
DOCKER_BUILDKIT: 1 | |
MAIN_BRANCH: main | |
URL_DOCKER_REGISTRY: ghcr.io | |
DOCKER_IMAGE_AGENCY: ghcr.io/absaoss/vcxagencynode/vcxagency-node:2.6.0 | |
DOCKER_IMAGE_POOL: ghcr.io/hyperledger/aries-vcx/indy_pool_localhost:1.15.0 | |
DOCKER_REPO_LOCAL_VDRPROXY: vdrproxy | |
RUST_TOOLCHAIN_VERSION: 1.74.1 | |
NODE_VERSION: 18.x | |
jobs: | |
test-integration-mediator: | |
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_VERSION }} | |
skip-docker-setup: true | |
skip-vdrproxy-setup: true | |
- name: Install prerequisites (sqlx) | |
# uses: Swatinem/rust-cache@v2 | |
run: cargo install sqlx-cli | |
- name: Setup database | |
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run --source aries/agents/rust/mediator/migrations | |
- name: "Run mediator integration tests" | |
run: cargo run --bin mediator & sleep 5 && cargo test --verbose --package mediator -- --nocapture; | |
- name: "Collect docker logs on failure" | |
if: failure() | |
uses: ./.github/actions/upload-docker-logs | |
with: | |
name: "docker-services-${{ github.job }}" |