Repository navigation
62 lines (52 loc) · 1.91 KB
/
Copy pathdatabase-compatibility.yml
File metadata and controls
62 lines (52 loc) · 1.91 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
53
54
55
56
57
58
59
60
61
62
name: Database compatibility
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
compatibility:
name: Database compatibility / ${{ matrix.database }}
runs-on: ubuntu-latest
timeout-minutes: 30
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 current Scriptella source
uses: actions/checkout@v6
- name: Set up Java 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
cache: maven
- name: Install current Scriptella artifacts
run: mvn --batch-mode --no-transfer-progress install -DskipTests
- name: Read current Scriptella version
id: scriptella
run: |
version=$(mvn --batch-mode --no-transfer-progress --non-recursive --quiet help:evaluate -Dexpression=project.version -DforceStdout -Dstyle.color=never)
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Check out compatibility suite
uses: actions/checkout@v6
with:
repository: scriptella/scriptella-testcontainers
path: scriptella-testcontainers
- name: Run database compatibility test
env:
SCRIPTELLA_VERSION: ${{ steps.scriptella.outputs.version }}
run: ./scriptella-testcontainers/run-db-test.sh "${{ matrix.database }}" "-Dscriptella.version=$SCRIPTELLA_VERSION"
- name: Upload compatibility report
if: always()
uses: actions/upload-artifact@v4
with:
name: compatibility-${{ matrix.database }}
path: scriptella-testcontainers/reports/${{ matrix.database }}.log
if-no-files-found: ignore