Minepacks/.github/workflows/maven.yml
2021-11-02 21:24:25 +01:00

28 lines
772 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
continue-on-error: true
strategy:
matrix:
java-version:
- 8
- 11
- 17
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Build and test with maven
run: mvn -B -s .github/workflows/settings.xml clean package test --file pom.xml