Skip to content

Commit 8b3e250

Browse files
committed
INFRA-411: Use shared GA workflows to build artifacts
1 parent 23072d8 commit 8b3e250

1 file changed

Lines changed: 10 additions & 17 deletions

File tree

.github/workflows/maven.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
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

63
on:
74
push:
@@ -11,17 +8,13 @@ on:
118

129
jobs:
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 }}

0 commit comments

Comments
 (0)