From 49c0e88195ccefb086d65086d434b1cd77e25a8f Mon Sep 17 00:00:00 2001 From: Natty <31473117+493msi@users.noreply.github.com> Date: Wed, 6 Apr 2022 18:56:29 +0200 Subject: [PATCH] Added a build workflow for testing --- .github/workflows/gradle-test-build.yml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/gradle-test-build.yml diff --git a/.github/workflows/gradle-test-build.yml b/.github/workflows/gradle-test-build.yml new file mode 100644 index 0000000..bbcee5d --- /dev/null +++ b/.github/workflows/gradle-test-build.yml @@ -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