Skip to content

(chore) UIFR-224: Simplify GitHub Action with Matrix Strategy #61

(chore) UIFR-224: Simplify GitHub Action with Matrix Strategy

(chore) UIFR-224: Simplify GitHub Action with Matrix Strategy #61

Workflow file for this run

# this build is designed to replicate the Travis CI workflow
name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [8, 11, 17]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
cache: maven
- name: Display Java version
run: java -version
- name: Build with Maven
run: mvn clean install --file pom.xml