-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 965 Bytes
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on: [ pull_request ]
name: Pull Request
permissions:
contents: write
pull-requests: write
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- uses: gradle/[email protected]
with:
arguments: test --continue --no-daemon --configuration-cache
- uses: dorny/[email protected]
if: success() || failure()
with:
name: test
path: "**/build/test-results/test/TEST-*.xml"
reporter: java-junit
token: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-merge Dependabot's pull request
if: ${{ github.actor == 'dependabot[bot]' }}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}