Skip to content

GitHub workflows to help with review #4

GitHub workflows to help with review

GitHub workflows to help with review #4

Workflow file for this run

name: Testing Flyway Migrations
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
jobs:
run-tests:
runs-on: ubuntu-latest
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 ./
# 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