-
Notifications
You must be signed in to change notification settings - Fork 157
53 lines (43 loc) · 1.25 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
53
name: Build and Test
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
build-test:
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.3.3
secrets: inherit
hibernate-test:
name: Test Hibernate ${{ matrix.hibernate }}
needs: build-test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
hibernate: [ "6.0.2.Final", "6.1.7.Final" ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Run Compatibility Tests
run: mvn -qB jacoco:prepare-agent surefire:test -Dhibernate.version=${{ matrix.hibernate }}
- name: Run Tests
run: mvn -qB jacoco:prepare-agent surefire:test
- name: Archive Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-reports-hibernate-${{ matrix.hibernate }}
path: |
**/target/surefire-reports
**/target/jacoco.exec
dependabot:
uses: liquibase/build-logic/.github/workflows/dependabot-automerge.yml@main
secrets: inherit