-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (40 loc) · 1.08 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
name: Build and Test
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
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
with:
java: "[ 17, 21 ]"
integration-tests:
name: Java ${{ matrix.java }}
runs-on: ubuntu-latest
needs: build-test
strategy:
matrix:
java: [17, 21]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Test With Maven
run: ./mvnw clean integration-test
dependabot:
needs: integration-tests
uses: liquibase/build-logic/.github/workflows/dependabot-automerge.yml@main
secrets: inherit