From 294137603febf6dedd13c088f725eb09fa7cb8ed Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 18 Aug 2024 17:01:49 +0200 Subject: [PATCH] Add test job, update build job --- .forgejo/workflows/build-and-test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build-and-test.yml b/.forgejo/workflows/build-and-test.yml index 091e88e..63e1936 100644 --- a/.forgejo/workflows/build-and-test.yml +++ b/.forgejo/workflows/build-and-test.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout uses: https://code.forgejo.org/actions/checkout@v4 - name: Compile - run: ./gradlew --no-daemon build + run: ./gradlew --no-daemon jar javadocJar sourceJar - name: Upload library JARs uses: https://code.forgejo.org/forgejo/upload-artifact@v4 with: @@ -37,3 +37,12 @@ jobs: path: | **/build/libs/*-source.jar if-no-files-found: error + test: + runs-on: docker + container: + image: git.staropensource.de/staropensource/actions-docker:java + steps: + - name: Checkout + uses: https://code.forgejo.org/actions/checkout@v4 + - name: Run tests + run: ./gradlew --no-daemon test