Skip to content

Run both postgres and sqlite on docker CI #11

Run both postgres and sqlite on docker CI

Run both postgres and sqlite on docker CI #11

Workflow file for this run

name: docker CI
on:
push:
branches:
- "**"
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * MON"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
database-type: [PostgreSQL, SQLite3]
defaults:
run:
working-directory: docker
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Create image
run: |
bash docker_create_secrets.sh
bash docker_create_volume.sh
bash docker_create_image.sh
- name: Run tests with docker run
run: |
bash docker_run_tests.sh run ${matrix.database-type}
- name: Run tests with docker exec
if: matrix.database-type == 'SQLite3'
run: |
bash docker_create_container.sh
bash docker_start.sh
bash docker_run_tests.sh exec ${matrix.database-type}
bash docker_stop.sh
bash docker_destroy_container.sh
warn:
runs-on: ubuntu-latest
if: github.repository == 'dmf-unicatt/turing-dmf' && github.ref == 'refs/heads/main' && github.event_name == 'schedule'
steps:
- name: Warn if scheduled workflow is about to be disabled
uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@main
with:
workflow-filename: docker_ci.yml
days-elapsed: 50