Minepacks/.github/workflows/maven.yml

27 lines
744 B
YAML
Raw Normal View History

2020-03-08 23:55:43 +01:00
# 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
2021-11-02 21:24:25 +01:00
name: Build
2020-03-08 23:55:43 +01:00
on: [push, pull_request]
jobs:
2021-11-02 21:24:25 +01:00
buildAndTest:
2020-03-08 23:55:43 +01:00
runs-on: ubuntu-latest
2021-11-02 21:24:25 +01:00
strategy:
matrix:
java-version:
- 8
- 11
- 17
2020-03-08 23:55:43 +01:00
steps:
2021-11-02 21:24:25 +01:00
- 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