mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-18 00:46:55 +01:00
Build jars on PR (Compile and build validation)
This commit is contained in:
parent
0c6dd5466c
commit
748b9f33f7
31
.github/workflows/pr_build_jars.yml
vendored
Normal file
31
.github/workflows/pr_build_jars.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: "Build Jars on Java 8, 9, 10 and 11"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- development
|
||||||
|
paths:
|
||||||
|
- "src/**"
|
||||||
|
- "build.gradle"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
testBuilds:
|
||||||
|
name: "Build Jars against Java 8, 9, 10 and 11"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
max-parallel: 4
|
||||||
|
matrix:
|
||||||
|
java-version: [8, 9, 10, 11]
|
||||||
|
steps:
|
||||||
|
- name: "Checkout Code"
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: "Prepare Java ${{ matrix.java-version }}"
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: "zulu"
|
||||||
|
java-version: "${{ matrix.java-version }}"
|
||||||
|
- name: "Make build.gradle executable"
|
||||||
|
run: "chmod +x gradlew"
|
||||||
|
- name: "Build jar"
|
||||||
|
run: "./gradlew shadowJar"
|
Loading…
Reference in New Issue
Block a user