chore: Use java 21 instead of 18 for building #113
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
pull_request_target: | |
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: | |
uses: liquibase/build-logic/.github/workflows/[email protected] | |
needs: authorize | |
secrets: inherit | |
with: | |
java: "[11, 17, 21]" | |
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 | |
with: | |
ref: ${{ github.event.pull_request.head.sha || github.ref }} | |
- 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 }} |