build(deps): Bump org.assertj:assertj-core from 3.26.3 to 3.27.0 #770
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: Java Maven Test CI (Linux + Windows) | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main] | |
permissions: | |
contents: read | |
# Cancel any in-progress job or run if there is a newer commit | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
testOnLinux: | |
name: Maven Verify (Build & Test) on Linux | |
runs-on: ubuntu-22.04 # 24.04 is causing https://github.com/MariaDB4j/MariaDB4j/issues/1045 | |
permissions: | |
# maven-dependency-submission-action needs write | |
contents: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
# https://github.com/marketplace/actions/cache-apt-packages | |
- uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # latest | |
with: | |
packages: libncurses5 mariadb-server | |
version: 1.0 | |
# https://github.com/marketplace/actions/setup-java-jdk | |
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
distribution: temurin | |
java-version-file: .java-version | |
cache: maven | |
# Run verify, not just package, to catch any failures of mariaDB4j-maven-plugin's integration test | |
- run: ./mvnw --show-version --batch-mode --strict-checksums verify | |
# When contrib. new DB version, then ./mvnw -f DBs/pom.xml clean install | |
# https://github.com/marketplace/actions/maven-dependency-tree-dependency-submission | |
- name: Maven Dependency Tree Dependency Submission | |
if: ${{ github.event_name == 'push' }} | |
uses: advanced-security/maven-dependency-submission-action@4f64ddab9d742a4806eeb588d238e4c311a8397d # v4.1.1 | |
testOnWindows: | |
runs-on: windows-latest | |
name: Maven Verify (Build & Test) on Windows | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
distribution: adopt | |
java-version-file: .java-version | |
cache: maven | |
- uses: ankane/setup-mariadb@14ea302aa8c921b5a55450add91abb724369d40b # v1 | |
with: | |
mariadb-version: "10.11" | |
- name: Build with Maven | |
run: ./mvnw.cmd --show-version --batch-mode --strict-checksums verify |