Add test job, update build job
Some checks failed
build-and-test / build (push) Failing after 7m20s
build-and-test / test (push) Successful in 4m28s

This commit is contained in:
JeremyStar™ 2024-08-18 17:01:49 +02:00
parent fbbf7094c7
commit 294137603f
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -13,7 +13,7 @@ jobs:
- name: Checkout - name: Checkout
uses: https://code.forgejo.org/actions/checkout@v4 uses: https://code.forgejo.org/actions/checkout@v4
- name: Compile - name: Compile
run: ./gradlew --no-daemon build run: ./gradlew --no-daemon jar javadocJar sourceJar
- name: Upload library JARs - name: Upload library JARs
uses: https://code.forgejo.org/forgejo/upload-artifact@v4 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
@ -37,3 +37,12 @@ jobs:
path: | path: |
**/build/libs/*-source.jar **/build/libs/*-source.jar
if-no-files-found: error 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