-
Notifications
You must be signed in to change notification settings - Fork 0
21 lines (21 loc) · 925 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: tests
on: push
jobs:
test-postgres:
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Run test for postgres backend
run: docker-compose up --build --exit-code-from postgres_test -- postgres_test postgres_db
- name: Rerun test to be sure migration completes successfully on already migrated db
run: docker-compose up --build --exit-code-from postgres_test -- postgres_test postgres_db
test-mysql:
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Run test for mysql backend
run: docker-compose up --build --exit-code-from mysql_test -- mysql_test mysql_db
- name: Rerun test to be sure migration completes successfully on already migrated db
run: docker-compose up --build --exit-code-from mysql_test -- mysql_test mysql_db