Run Liquibase migrations blocking before startup.

This commit is contained in:
Kavin 2023-08-14 10:55:31 +01:00
parent 1175a1c6c3
commit e32ffb16a1
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F
2 changed files with 14 additions and 8 deletions

View file

@ -23,6 +23,12 @@ jobs:
- Dockerfile.azul.ci
- Dockerfile.openj9.ci
- Dockerfile.graalvm-jvm.ci
include:
- sleep: 20
- docker-compose-file: testing/docker-compose.cockroachdb.yml
sleep: 30
- docker-compose-file: testing/docker-compose.yugabytedb.yml
sleep: 120
fail-fast: false
steps:
- uses: actions/checkout@v3
@ -45,7 +51,7 @@ jobs:
file: ${{ matrix.dockerfile }}
tags: 1337kavin/piped:latest
- name: Start Docker-Compose services
run: docker-compose -f ${{ matrix.docker-compose-file }} up -d && sleep 20
run: docker-compose -f ${{ matrix.docker-compose-file }} up -d && sleep ${{ matrix.sleep }}
- name: Run tests
run: ./testing/api-test.sh
- name: Collect services logs