Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit b9c9dbc

Browse files
authored
Merge pull request #21 from codehaus-plexus/shared-actions
use shared actions
2 parents 5783479 + 11d3e1c commit b9c9dbc

File tree

2 files changed

+11
-36
lines changed

2 files changed

+11
-36
lines changed

.github/workflows/maven.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,13 @@ name: GitHub CI
2020
on: [ push, pull_request ]
2121

2222
jobs:
23-
build:
24-
25-
strategy:
26-
matrix:
27-
os: [ ubuntu-latest,windows-latest, macOS-latest ]
28-
java: [ 8, 11, 16, 17-ea ]
29-
fail-fast: false
30-
31-
runs-on: ${{ matrix.os }}
32-
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v3
3623

37-
- name: Set up cache for ~./m2/repository
38-
uses: actions/[email protected]
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+
build:
25+
name: Build it
26+
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
27+
with:
28+
jdk-fast-fail-build: '11'
29+
jdk-matrix: '["11", "17"]'
30+
jdk-distribution-matrix: '["zulu", "temurin", "microsoft", "liberica"]'
31+
os-matrix: '["ubuntu-latest","windows-latest", "macOS-latest"]'
32+
maven_args: 'verify javadoc:javadoc -e -B -V -fae '

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,5 @@ on:
44
branches:
55
- master
66
jobs:
7-
update_release_draft:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: release-drafter/[email protected]
11-
env:
12-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7+
update_release_draft:
8+
uses: codehaus-plexus/.github/.github/workflows/release-drafter.yml@master

0 commit comments

Comments
 (0)