Minepacks/.github/workflows/maven.yml
2023-05-20 11:11:11 +02:00

24 lines
709 B
YAML

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build
on: [push, pull_request]
jobs:
buildAndTest:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 8, 11, 17 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Build and test with maven
run: mvn -B -s .github/workflows/settings.xml clean package --file pom.xml