Minepacks/.github/workflows/maven.yml

24 lines
709 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:
2021-11-06 21:27:14 +01:00
java-version: [ 8, 11, 17 ]
2020-03-08 23:55:43 +01:00
steps:
2021-11-02 21:24:25 +01:00
- name: Checkout
2023-05-20 11:11:11 +02:00
uses: actions/checkout@v3
2021-11-02 21:24:25 +01:00
- name: Set up JDK ${{ matrix.java-version }}
2023-05-20 11:11:11 +02:00
uses: actions/setup-java@v3
2021-11-02 21:24:25 +01:00
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Build and test with maven
2021-11-06 21:27:14 +01:00
run: mvn -B -s .github/workflows/settings.xml clean package --file pom.xml