-
Notifications
You must be signed in to change notification settings - Fork 26
52 lines (48 loc) · 1.39 KB
/
test.yml
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: Build and Test
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
build-test:
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit
with:
java: "[11, 17, 18]"
os: '["ubuntu-latest", "windows-latest"]'
dependabot-automerge:
needs: build-test
uses: liquibase/build-logic/.github/workflows/[email protected]
secrets: inherit
integration-tests:
name: Java ${{ matrix.java }}, MySQL ${{ matrix.mysql }}, MariaDB ${{ matrix.mariadb }}
runs-on: ubuntu-latest
needs: build-test
timeout-minutes: 60
strategy:
matrix:
java: [8, 11, 17, 21]
mysql: [8.0, 8.2]
mariadb: [10, 11]
steps:
- uses: actions/checkout@v4
- name: Install Perl modules
run: |
sudo apt-get update
sudo apt-get install libdbd-mysql-perl
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Run Integration Tests With Maven
shell: bash
run: |
./mvnw --batch-mode --errors --no-transfer-progress --show-version \
clean verify -Prun-its \
-Dmysql_image=mysql:${{ matrix.mysql }} \
-Dmariadb_image=mariadb:${{ matrix.mariadb }}