2023-09-25 02:03:08 +00:00
|
|
|
name: Pull request workflow
|
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
2023-09-27 13:28:50 +00:00
|
|
|
checks: write
|
2023-09-25 02:03:08 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-09-27 12:43:13 +00:00
|
|
|
test:
|
2023-09-27 12:46:06 +00:00
|
|
|
name: Gradle Check
|
2023-09-25 02:03:08 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
- name: Run checks with Gradle Wrapper
|
2023-09-27 12:45:12 +00:00
|
|
|
run: ./gradlew --no-daemon --no-configuration-cache check
|
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
|
2023-09-27 12:43:13 +00:00
|
|
|
# automerge:
|
|
|
|
# name: Enable automerge
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# if: ${{ github.actor == 'wbrawner' }}
|
|
|
|
# steps:
|
|
|
|
# - name: Enable auto-merge
|
|
|
|
# run: gh pr merge --auto --merge "$PR_URL"
|
|
|
|
# env:
|
|
|
|
# PR_URL: ${{github.event.pull_request.html_url}}
|
|
|
|
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|