You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
910 B
41 lines
910 B
name: Junit Test with JDK from 17 to 21
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 2024
|
|
- 2023
|
|
- 2022
|
|
pull_request:
|
|
branches:
|
|
- 2024
|
|
- 2023
|
|
- 2022
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
java: [ 17, 21 ]
|
|
os: [ 'windows-latest', 'ubuntu-latest' ]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout codes
|
|
uses: actions/checkout@v4
|
|
- name: Set up JDK ${{ matrix.java }}
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: ${{ matrix.java }}
|
|
- name: Cache local Maven repository
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.m2/repository
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-maven-
|
|
- name: Test with Maven
|
|
run: mvn clean test -f pom.xml -B -P sonatype -U
|