-
Notifications
You must be signed in to change notification settings - Fork 565
50 lines (47 loc) · 1.23 KB
/
maven.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build
on:
push:
branches: [ "main" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# The last 2 LTS releases + latest version
java: [ 17, 21, 22 ]
name: Java ${{matrix.java}}
steps:
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java}}
- name: Build with Maven
run: mvn -B package
- name: 'Upload test results'
uses: actions/upload-artifact@v4
if: always()
with:
name: test-report-${{matrix.java}}
retention-days: 14
path: |
**/target/site
**/target/surefire-reports
auto-merge-dependabot:
name: 🤖 Auto merge dependabot PR
timeout-minutes: 10
needs: [ build ]
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: 🤖 Merge PR from dependabot
uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
target: minor
merge-method: rebase