2021-06-25 16:32:45 +02:00
|
|
|
name: "Test compiling against Java 8, 11 and 16"
|
2021-04-26 18:05:42 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- development
|
|
|
|
paths:
|
|
|
|
- "src/**"
|
|
|
|
- "build.gradle"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
testBuilds:
|
2021-06-25 16:32:45 +02:00
|
|
|
name: "Test-compile against Java 8, 11 and 16"
|
2021-04-26 18:05:42 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
max-parallel: 4
|
|
|
|
matrix:
|
2021-06-25 16:32:45 +02:00
|
|
|
java-version: [8, 11, 16]
|
2021-04-26 18:05:42 +02:00
|
|
|
steps:
|
|
|
|
- name: "Checkout Code"
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: "Prepare Java ${{ matrix.java-version }}"
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
2021-06-25 16:33:27 +02:00
|
|
|
distribution: "adopt"
|
2021-04-26 18:05:42 +02:00
|
|
|
java-version: "${{ matrix.java-version }}"
|
|
|
|
- name: "Make build.gradle executable"
|
|
|
|
run: "chmod +x gradlew"
|
2021-06-25 16:32:45 +02:00
|
|
|
- name: "Build jar with Java ${{ matrix.java-version }}"
|
2021-04-26 18:05:42 +02:00
|
|
|
run: "./gradlew shadowJar"
|