mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-22 14:16:53 +01:00
32 lines
782 B
YAML
32 lines
782 B
YAML
name: "Test compiling against Java 8, 11 and 16"
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- development
|
|
paths:
|
|
- "src/**"
|
|
- "build.gradle"
|
|
|
|
jobs:
|
|
testBuilds:
|
|
strategy:
|
|
fail-fast: false
|
|
max-parallel: 4
|
|
matrix:
|
|
java-version: [8, 11, 16]
|
|
name: "Compile jar against ${{ matrix.java-version }}"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout Code"
|
|
uses: actions/checkout@v2
|
|
- name: "Prepare Java ${{ matrix.java-version }}"
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: "adopt"
|
|
java-version: "${{ matrix.java-version }}"
|
|
- name: "Make build.gradle executable"
|
|
run: "chmod +x gradlew"
|
|
- name: "Build jar with Java ${{ matrix.java-version }}"
|
|
run: "./gradlew shadowJar"
|