-
Notifications
You must be signed in to change notification settings - Fork 6
71 lines (58 loc) · 1.69 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build and Test
on:
workflow_dispatch:
pull_request_target:
types:
- opened
- reopened
- synchronize
permissions:
contents: write
pull-requests: write
jobs:
authorize:
environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true
build-test:
needs: authorize
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@main
secrets: inherit
integration-test:
needs: authorize
name: Test Harness for Maxdb ${{ matrix.maxdb }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
maxdb: [ "" ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Build Cache
uses: actions/cache@v4.2.0
with:
key: build-${{ github.run_number }}-${{ github.run_attempt }}
path: |
**/target/**
~/.m2/repository/org/liquibase/
- name: Run Tests
run: mvn -B jacoco:prepare-agent surefire:test -Dmaxdb.version=${{ matrix.maxdb }}
- name: Archive Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-reports-maxdb-${{ matrix.maxdb }}
path: |
**/target/surefire-reports
**/target/jacoco.exec
dependabot-automerge:
needs: build-test
uses: liquibase/build-logic/.github/workflows/dependabot-automerge.yml@main
secrets: inherit