File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Maven
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+ name : Maven CI
5+
6+ on :
7+ pull_request :
8+
9+ jobs :
10+ build :
11+ runs-on : ${{ matrix.os }}
12+ strategy :
13+ matrix :
14+ os : [ubuntu-latest]
15+ java : [8, 11]
16+ profile : ['', '-Pclassic']
17+
18+ steps :
19+ # Check out Git repository
20+ - name : Checkout code
21+ uses : actions/checkout@v2
22+
23+ # Set up environment with Java and Maven
24+ - name : Setup JDK
25+ uses : actions/setup-java@v1
26+ with :
27+ java-version : ${{ matrix.java }}
28+
29+ # Set up dependency cache
30+ - name : Cache local Maven repository
31+ uses : actions/cache@v2
32+ with :
33+ path : ~/.m2/repository
34+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
35+ restore-keys : |
36+ ${{ runner.os }}-maven-
37+ # Build & Test
38+ - name : Build & Test with Maven
39+ run : mvn clean install ${{ matrix.profile }}
You can’t perform that action at this time.
0 commit comments