From 35cfc75a04aeaaffc743181923afced087f8c749 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 18 Aug 2024 19:54:15 +0200 Subject: [PATCH] Separate build-and-test into PR & commit workflow --- .../{build-and-test.yml => commit.yml} | 0 .forgejo/workflows/pullrequest.yml | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+) rename .forgejo/workflows/{build-and-test.yml => commit.yml} (100%) create mode 100644 .forgejo/workflows/pullrequest.yml 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 00000000..f09118fa --- /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