Skip to content

migrate to maven

migrate to maven #249

Workflow file for this run

name: Unit Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
unit-test:
name: Unit Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
# ref: https://www.oracle.com/java/technologies/java-se-support-roadmap.html
java-version: [ "8", "11", "17" ]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu' # temurin don't provide jdk8 anymore
cache: maven
# cache Gradle package to speed up future runs after a successful run.
- name: Run the Maven verify phase
run: mvn --batch-mode verify -DskipITs -Dgpg.skip
- run: mkdir staging && cp target/*.jar staging
# store the built packages as part of the workflow run.
# Allow us to download these artifacts and import to project to help local test.
# with matrix, Each job overwrites what was previously uploaded, but it's fine for us.
- uses: actions/upload-artifact@v4
with:
name: jar-collection-${{ matrix.os }}-${{ matrix.java-version }}
path: staging
retention-days: 7