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 : Java CI with Maven
1+ name : CI
52
63on :
74 push :
118
129jobs :
1310 build :
14-
15- runs-on : ubuntu-latest
1611 strategy :
17- matrix :
18- java : [ '8', '11']
19- steps :
20- - uses : actions/checkout@v2
21- - name : Set up JDK ${{ matrix.Java }}
22- uses : actions/setup-java@v2
23- with :
24- java-version : ${{ matrix.Java }}
25- distribution : ' adopt'
26- - name : Build with Maven
27- run : mvn -B package --file pom.xml
12+ matrix :
13+ java : [ '8', '11']
14+ uses : mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
15+ uses : actions/setup-java@v2
16+ with :
17+ java-version : ${{ matrix.Java }}
18+ secrets :
19+ NEXUS_USERNAME : ${{ secrets.NEXUS_USERNAME }}
20+ NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
You can’t perform that action at this time.
0 commit comments