-
Notifications
You must be signed in to change notification settings - Fork 25
37 lines (35 loc) · 1.04 KB
/
ALL-testMigrate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Testing Flyway Migrations
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pgsql-version:
- "12"
- "13"
- "14"
- "15"
- "16"
steps:
# Check out the repo
- name: Checkout Repository
uses: actions/checkout@v4
# Here we fully build a docker using the current checked out code
# to ensure we test the current migrations.
- name: Build Docker Image
run: |
docker build --tag gmod/chado:local \
--file docker/Dockerfile \
--build-arg PGSQL_VERSION="${{ matrix.pgsql-version }}" ./
# Just spin up docker the good ol' fashion way
# then run flyway baseline and migrate.
- name: Run Flyway Baseline then migrate
run: |
docker run --name=chadodocker -tid gmod/chado:local
docker exec chadodocker flyway baseline
docker exec chadodocker flyway migrate