2024-12-13 03:10:28 +01:00
|
|
|
name: "PRs & Pushes"
|
2024-08-18 18:25:22 +02:00
|
|
|
|
|
|
|
on:
|
2024-12-13 03:10:28 +01:00
|
|
|
- push
|
|
|
|
- pull_request
|
2024-08-18 18:25:22 +02:00
|
|
|
|
|
|
|
jobs:
|
2024-12-25 01:03:09 +01:00
|
|
|
test:
|
2024-12-13 03:10:28 +01:00
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: git.staropensource.de/infrastructure/actions-docker:java
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Restore Gradle cache
|
|
|
|
uses: actions/cache/restore@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-${{ runner.os }}-
|
2024-12-25 01:03:09 +01:00
|
|
|
- name: Run tests
|
|
|
|
run: ./gradlew --no-daemon -Pjava.skipToolchainSpecification=true test
|
2024-12-13 03:10:28 +01:00
|
|
|
- name: Save Gradle cache
|
|
|
|
uses: actions/cache/save@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-${{ runner.os }}-
|
2024-12-25 01:03:09 +01:00
|
|
|
build-jars:
|
2024-12-16 02:45:36 +01:00
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: git.staropensource.de/infrastructure/actions-docker:java
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Restore Gradle cache
|
|
|
|
uses: actions/cache/restore@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-${{ runner.os }}-
|
2024-12-25 01:03:09 +01:00
|
|
|
- name: Compile
|
|
|
|
run: ./gradlew --no-daemon -Pjava.skipToolchainSpecification=true jar javadocJar sourcesJar
|
2024-12-16 02:45:36 +01:00
|
|
|
- name: Save Gradle cache
|
|
|
|
uses: actions/cache/save@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-${{ runner.os }}-
|
2024-12-25 01:03:09 +01:00
|
|
|
- name: Upload JARs
|
|
|
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: jars
|
|
|
|
path: |
|
|
|
|
**/build/libs/*.jar
|
|
|
|
if-no-files-found: error
|
2024-12-13 03:10:28 +01:00
|
|
|
build-apidoc:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: git.staropensource.de/infrastructure/actions-docker:java
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Restore Gradle cache
|
|
|
|
uses: actions/cache/restore@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-${{ runner.os }}-
|
|
|
|
- name: Compile
|
2024-12-25 19:08:11 +01:00
|
|
|
run: ./gradlew --no-daemon -Pjava.skipToolchainSpecification=true dokkaHtml dokkaHtmlMultiModule
|
2024-12-13 03:10:28 +01:00
|
|
|
- name: Save Gradle cache
|
|
|
|
uses: actions/cache/save@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-${{ runner.os }}-
|
|
|
|
- name: Upload JARs
|
|
|
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
|
|
with:
|
2024-12-13 03:16:50 +01:00
|
|
|
name: apidoc
|
2024-12-13 03:10:28 +01:00
|
|
|
path: |
|
|
|
|
build/dokka/htmlMultiModule
|
|
|
|
**/build/dokka/html
|
|
|
|
**/build/libs/*.jar
|
|
|
|
if-no-files-found: error
|