Skip to content

Commit

Permalink
fix: use fixed version of sqlx-cli and it's Cargo.lock
Browse files Browse the repository at this point in the history
Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 committed Dec 25, 2024
1 parent 82a481d commit 5d2aeb8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/mediator.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- "**"
paths:
- 'aries/agents/mediator/**'
- "aries/agents/mediator/**"

env:
DOCKER_BUILDKIT: 1
Expand All @@ -17,7 +17,6 @@ env:
RUST_TOOLCHAIN_VERSION: 1.79.0

jobs:

setup-variables:
runs-on: ubuntu-22.04
outputs:
Expand Down Expand Up @@ -51,7 +50,7 @@ jobs:
echo "SKIP_CI ${{ needs.setup-variables.outputs.SKIP_CI }}"
test-integration-mediator:
needs: [ setup-variables ]
needs: [setup-variables]
if: ${{ needs.setup-variables.outputs.SKIP_CI != 'true' }}
runs-on: ubuntu-22.04
services:
Expand All @@ -63,7 +62,7 @@ jobs:
MYSQL_PASSWORD: github.ci.password.no.prod
MYSQL_ROOT_PASSWORD: github.ci.password.no.prod
ports:
- '3326:3306'
- "3326:3306"
env:
MYSQL_URL: mysql://admin:github.ci.password.no.prod@localhost:3326/mediator-persistence.mysql
steps:
Expand All @@ -77,7 +76,7 @@ jobs:
skip-vdrproxy-setup: true
- name: Install prerequisites (sqlx)
# uses: Swatinem/rust-cache@v2
run: cargo install sqlx-cli
run: cargo install sqlx-cli@0.8.2 --locked
- name: Setup database
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run --source aries/agents/mediator/migrations
- name: "Run mediator integration tests"
Expand All @@ -89,7 +88,7 @@ jobs:
name: "docker-services-${{ github.job }}"

docker-mediator-build:
needs: [ test-integration-mediator, setup-variables ]
needs: [test-integration-mediator, setup-variables]
if: ${{ needs.setup-variables.outputs.SKIP_CI != 'true' }}
runs-on: ubuntu-22.04
env:
Expand Down Expand Up @@ -120,4 +119,4 @@ jobs:
docker-img: ${{ env.DOCKER_IMAGE }}
publish-version: ${{ needs.setup-variables.outputs.PUBLISH_VERSION }}
env:
URL_DOCKER_REGISTRY: ghcr.io # Required by .github/actions/publish-image
URL_DOCKER_REGISTRY: ghcr.io # Required by .github/actions/publish-image

0 comments on commit 5d2aeb8

Please sign in to comment.