twigs/.github/workflows/pull-request.yml
Renovate Bot 6c96c6f2c2
Some checks failed
Pull request workflow / Build and Test (pull_request) Successful in 3m34s
Publish Docker image / Push Docker image to Forgejo Packages (push) Failing after 1m13s
Update actions/setup-java action to v4
2024-07-07 06:01:54 +00:00

31 lines
778 B
YAML

name: Pull request workflow
on: pull_request
permissions:
statuses: write
checks: write
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: --stacktrace build
- 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