Compare commits

..

3 commits

Author SHA1 Message Date
294137603f
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
2024-08-18 17:01:49 +02:00
fbbf7094c7
Switch to java flavour 2024-08-18 17:01:28 +02:00
c8cf0d7437
[no ci] Use one-time daemon 2024-08-18 16:51:38 +02:00

View file

@ -1,4 +1,4 @@
#name: build-and-test name: build-and-test
on: on:
- pull_request - pull_request
@ -8,14 +8,12 @@ jobs:
build: build:
runs-on: docker runs-on: docker
container: container:
image: git.staropensource.de/staropensource/actions-docker:latest image: git.staropensource.de/staropensource/actions-docker:java
steps: steps:
- name: Install latest OpenJDK release
run: pacman -S --noconfirm jdk-openjdk
- 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 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:
@ -39,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