-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.36 KB
/
Copy pathcompatibility.yml
File metadata and controls
52 lines (45 loc) · 1.36 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Database compatibility
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
inputs:
scriptella_version:
description: Scriptella version to test
required: false
default: '1.5'
permissions:
contents: read
jobs:
compatibility:
name: Database compatibility / ${{ matrix.database }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
database: [postgresql, mariadb, oracle, mssql]
# If heavy jobs become too slow or expensive, keep PostgreSQL and MariaDB
# on the normal PR path and move Oracle/SQL Server to a narrower trigger.
steps:
- name: Check out source
uses: actions/checkout@v6
- name: Set up Java 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
cache: maven
- name: Run database compatibility test
run: ./run-db-test.sh "${{ matrix.database }}" "-Dscriptella.version=${SCRIPTELLA_VERSION}"
env:
SCRIPTELLA_VERSION: ${{ inputs.scriptella_version || '1.5' }}
- name: Upload compatibility report
if: always()
uses: actions/upload-artifact@v4
with:
name: compatibility-${{ matrix.database }}
path: reports/${{ matrix.database }}.log
if-no-files-found: ignore