2023-09-25 02:03:08 +00:00
|
|
|
name: Pull request workflow
|
|
|
|
on: pull_request
|
|
|
|
|
2024-03-28 02:14:08 +00:00
|
|
|
permissions:
|
2024-03-28 02:20:06 +00:00
|
|
|
statuses: write
|
|
|
|
checks: write
|
2024-03-28 02:14:08 +00:00
|
|
|
|
2023-09-25 02:03:08 +00:00
|
|
|
jobs:
|
2023-09-27 12:43:13 +00:00
|
|
|
test:
|
2023-09-27 13:34:59 +00:00
|
|
|
name: Build and Test
|
2023-09-25 02:03:08 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-07 05:03:53 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-07-07 06:01:54 +00:00
|
|
|
- uses: actions/setup-java@v4
|
2023-09-27 14:29:00 +00:00
|
|
|
with:
|
|
|
|
distribution: temurin
|
|
|
|
java-version: 17
|
2023-09-27 13:48:07 +00:00
|
|
|
- name: Validate Gradle Wrapper
|
2024-07-07 10:01:54 +00:00
|
|
|
uses: gradle/wrapper-validation-action@v3
|
2023-09-27 13:34:59 +00:00
|
|
|
- name: Build with Gradle
|
2024-07-07 09:02:03 +00:00
|
|
|
uses: gradle/gradle-build-action@v3
|
2023-09-27 13:50:14 +00:00
|
|
|
with:
|
2023-09-27 14:29:00 +00:00
|
|
|
arguments: --stacktrace build
|
2023-09-27 13:24:21 +00:00
|
|
|
- name: Publish JUnit Results
|
|
|
|
uses: dorny/test-reporter@v1
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: Unit Tests
|
|
|
|
path: "*/build/test-results/test/*.xml"
|
|
|
|
reporter: java-junit
|
|
|
|
fail-on-error: true
|