File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Maven Verify
3+
4+ on :
5+ pull_request :
6+ branches :
7+ - main
8+ - release-3
9+
10+ jobs :
11+ build-main :
12+ if : github.base_ref == 'main'
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - name : Set up JDK 17
17+ uses : actions/setup-java@v4
18+ with :
19+ distribution : ' temurin'
20+ java-version : ' 17'
21+ - name : Cache Maven dependencies
22+ uses : actions/cache@v3
23+ with :
24+ path : ~/.m2/repository
25+ key : ${{ runner.os }}-maven-17-${{ hashFiles('**/pom.xml') }}
26+ restore-keys : |
27+ ${{ runner.os }}-maven-17-
28+ - name : Build with Maven
29+ run : mvn -B -ntp -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify
30+ build-release-3 :
31+ if : github.base_ref == 'release-3'
32+ runs-on : ubuntu-latest
33+ steps :
34+ - uses : actions/checkout@v4
35+ - name : Set up JDK 11
36+ uses : actions/setup-java@v4
37+ with :
38+ distribution : ' temurin'
39+ java-version : ' 11'
40+ - name : Cache Maven dependencies
41+ uses : actions/cache@v3
42+ with :
43+ path : ~/.m2/repository
44+ key : ${{ runner.os }}-maven-11-${{ hashFiles('**/pom.xml') }}
45+ restore-keys : |
46+ ${{ runner.os }}-maven-11-
47+ - name : Clean with Maven
48+ run : mvn clean
49+ - name : Build with Maven
50+ run : mvn -B -ntp -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn verify
You can’t perform that action at this time.
0 commit comments