Added a build workflow for testing

This commit is contained in:
Natty 2022-04-06 18:56:29 +02:00
parent a930d9885f
commit 49c0e88195
No known key found for this signature in database
GPG Key ID: 40AB22FA416C7019
1 changed files with 33 additions and 0 deletions

33
.github/workflows/gradle-test-build.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Gradle Package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Build
run: |
chmod +x ./gradlew
./gradlew build --stacktrace --info -x test