2024-07-08 09:49:37 +00:00
|
|
|
name: Basic test
|
2024-01-22 19:16:56 +00:00
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2024-07-08 09:49:37 +00:00
|
|
|
basic-test:
|
|
|
|
name: Build and sanity check
|
2024-01-22 19:16:56 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-08 09:49:37 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build Docker images
|
2024-01-22 19:16:56 +00:00
|
|
|
run: docker compose build
|
2024-07-08 09:49:37 +00:00
|
|
|
- name: Run Docker containers
|
|
|
|
run: docker compose up -d
|
|
|
|
- name: Check migration version
|
|
|
|
timeout-minutes: 1
|
|
|
|
run: |
|
|
|
|
while
|
|
|
|
version=$(docker compose run --rm migrations version 2>&1 | tail -1 | awk '{print $(NF)}')
|
|
|
|
[[ $version != 21 ]]; do
|
|
|
|
echo "Incorrect version: $version"
|
|
|
|
echo "Retrying..."
|
|
|
|
done
|