Separate build-and-test into PR & commit workflow
All checks were successful
build-and-test / build (push) Successful in 1m36s
build-and-test / test (push) Successful in 1m41s
build-and-test / generate-javadoc (push) Successful in 1m47s

This commit is contained in:
JeremyStar™ 2024-08-18 19:54:15 +02:00
parent 03d53fc997
commit 35cfc75a04
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,24 @@
name: build-and-test
on:
- pull_request
jobs:
generate-javadoc:
runs-on: docker
container:
image: git.staropensource.de/staropensource/actions-docker:java
steps:
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@v4
- name: Generate javadoc
run: ./gradlew --no-daemon javadoc
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