Pre-download dependencies with Maven #97
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-EA with Maven | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
jobs: | |
build-and-test-job: | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 20 ] | |
os: [ ubuntu-latest ] | |
name: JDK${{ matrix.java }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Build and (headless) test with Maven | |
uses: smithki/[email protected] | |
with: | |
run: mvn -U -B -ntp package |