-
Notifications
You must be signed in to change notification settings - Fork 34
51 lines (48 loc) · 1.2 KB
/
Copy pathmaven-build.yml
File metadata and controls
51 lines (48 loc) · 1.2 KB
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
51
name: Maven Build
on:
pull_request:
branches: [main, support/2.x.x]
workflow_dispatch:
jobs:
build-java-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: ./mvnw verify --no-transfer-progress
- name: Upload Unit Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v7
with:
name: UnitTests
path: |
target/surefire-reports/**
- name: Upload a Build Artifact
uses: actions/upload-artifact@v7
with:
name: drop
path: |
target/*.jar
pom.xml
mvnw
mvnw.cmd
.mvn/**
scripts/**
build-java-8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 8
distribution: 'temurin'
cache: maven
- name: Build with Java 8
run: ./mvnw compile --no-transfer-progress