twigs/.github/workflows/pull-request.yml

32 lines
778 B
YAML
Raw Normal View History

name: Pull request workflow
on: pull_request
permissions:
statuses: write
checks: write
jobs:
test:
2023-09-27 13:34:59 +00:00
name: Build and Test
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
with:
distribution: temurin
java-version: 17
2023-09-27 13:48:07 +00:00
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
2023-09-27 13:34:59 +00:00
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
2023-09-27 13:50:14 +00:00
with:
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