Separate build-and-test into PR & commit workflow
This commit is contained in:
parent
03d53fc997
commit
35cfc75a04
2 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/pullrequest.yml
Normal file
24
.forgejo/workflows/pullrequest.yml
Normal 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
|
Loading…
Reference in a new issue