Bump docker/login-action from 2 to 3 #36
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 CI on Pull Request Java 8 | |
on: | |
pull_request: | |
branches: | |
- 'master' | |
- 'develop' | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [ 8, 11, 17 ] | |
runs-on: ubuntu-latest | |
name: Java ${{ matrix.java }} compile | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Cache Maven Repo | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with Maven | |
run: mvn -fae -U -B clean license:check install -P check --file pom.xml |