Skip to content

Commit d633f92

Browse files
committed
Reuse plexus-pom action for CI
1 parent 35a9d9a commit d633f92

File tree

1 file changed

+9
-31
lines changed

1 file changed

+9
-31
lines changed

.github/workflows/maven.yml

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,15 @@
1717

1818
name: GitHub CI
1919

20-
on: [ push, pull_request ]
20+
on: [push, pull_request]
2121

2222
jobs:
2323
build:
24-
25-
strategy:
26-
matrix:
27-
os: [ ubuntu-latest,windows-latest, macOS-latest ]
28-
java: [ 8, 11, 17 ]
29-
fail-fast: false
30-
31-
runs-on: ${{ matrix.os }}
32-
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v4
36-
37-
- name: Set up cache for ~./m2/repository
38-
uses: actions/cache@v3
39-
with:
40-
path: ~/.m2/repository
41-
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
42-
restore-keys: |
43-
maven-${{ matrix.os }}-java${{ matrix.java }}-
44-
maven-${{ matrix.os }}-
45-
46-
- name: Set up JDK
47-
uses: actions/setup-java@v3
48-
with:
49-
distribution: adopt
50-
java-version: ${{ matrix.java }}
51-
52-
- name: Build with Maven
53-
run: mvn --batch-mode --errors --show-version verify
24+
name: Build it
25+
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
26+
27+
deploy:
28+
name: Deploy
29+
needs: build
30+
uses: codehaus-plexus/.github/.github/workflows/maven-deploy.yml@master
31+
secrets: inherit

0 commit comments

Comments
 (0)