diff --git a/.forgejo/workflows/build-and-test.yml b/.forgejo/workflows/commit.yml similarity index 100% rename from .forgejo/workflows/build-and-test.yml rename to .forgejo/workflows/commit.yml diff --git a/.forgejo/workflows/pullrequest.yml b/.forgejo/workflows/pullrequest.yml new file mode 100644 index 0000000..f09118f --- /dev/null +++ b/.forgejo/workflows/pullrequest.yml @@ -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