Start development on 3.0.2-SNAPSHOT #864
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: Unit Test CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/unit-tests.yaml | |
- '**.java' | |
- '**/pom.xml' | |
jobs: | |
build: | |
concurrency: | |
group: ${{ github.ref }}-${{ github.job }}-${{ matrix.jdk }}-${{ matrix.os }} | |
cancel-in-progress: true | |
strategy: | |
matrix: | |
jdk: [ 11, 20, 22] | |
os: [ ubuntu-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.jdk }} | |
distribution: temurin | |
cache: maven | |
- name: Compile, run tests, and package (JDK 22) | |
run: mvn -B verify | |
if: matrix.jdk == '22' | |
- name: Compile, run tests, and package (JDK 20) | |
run: mvn -B -Pjdk20 -am -pl jvector-tests test | |
if: matrix.jdk == '20' | |
- name: Compile and run tests (JDK 11) | |
run: mvn -B -Pjdk11 -am -pl jvector-tests test | |
if: matrix.jdk == '11' |