mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 22:22:10 +00:00
ci: setup using gradle
This commit is contained in:
1 parent
f48ab38b6a
commit
6834d0af4e
11 files changed
+423
-30
No files matched your search
@@ -0,0 +1,38 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
os:
|
||||
description: "The os the workflow shold use"
|
||||
required: false
|
||||
type: string
|
||||
default: ubuntu-latest
|
||||
java:
|
||||
description: "The Java version the workflow should use"
|
||||
required: false
|
||||
type: number
|
||||
default: 17
|
||||
|
||||
permissions:
|
||||
checks: write
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
test-build:
|
||||
name: "Run Tests"
|
||||
runs-on: ${{ inputs.os }}
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup JDK
|
||||
uses: ./.github/actions/jdk
|
||||
with:
|
||||
java-version: ${{ inputs.java }}
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: ./.github/actions/gradle
|
||||
|
||||
- name: Test with Gradle
|
||||
run: ./gradlew build --info
|
||||
Reference in new issue
Block a user