Skip to content

Commit 97c20b4

Browse files
authored
use shared gh action (#57)
* use shared gh action * Update release-drafter.yml * Update release-drafter.yml
1 parent 97f7aa1 commit 97c20b4

File tree

2 files changed

+31
-37
lines changed

2 files changed

+31
-37
lines changed

.github/workflows/maven.yml

+12-31
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,18 @@
1616
# under the License.
1717

1818
name: GitHub CI
19-
20-
on: [push, pull_request]
19+
on:
20+
push:
21+
pull_request:
2122

2223
jobs:
23-
build:
24-
25-
strategy:
26-
matrix:
27-
os: [ubuntu-latest,windows-latest, macOS-latest]
28-
java: [8, 11, 14, 15]
29-
fail-fast: false
30-
31-
runs-on: ${{ matrix.os }}
3224

33-
steps:
34-
- name: Checkout
35-
uses: actions/[email protected]
36-
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-
- name: Set up JDK
46-
uses: actions/setup-java@v3
47-
with:
48-
distribution: 'adopt'
49-
java-version: ${{ matrix.java }}
50-
51-
- name: Build with Maven
52-
run: mvn install javadoc:javadoc -e -B -V
25+
build:
26+
name: Build it
27+
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
28+
with:
29+
jdk-fast-fail-build: '11'
30+
jdk-matrix: '["11", "17"]'
31+
jdk-distribution-matrix: '["zulu", "temurin", "microsoft", "liberica"]'
32+
os-matrix: '["ubuntu-latest","windows-latest", "macOS-latest"]'
33+
maven_args: 'install javadoc:javadoc -e -B -V -fae '

.github/workflows/release-drafter.yml

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
118
name: Release Drafter
219
on:
320
push:
421
branches:
522
- master
623
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 }}
24+
update_release_draft:
25+
uses: codehaus-plexus/.github/.github/workflows/release-drafter.yml@master

0 commit comments

Comments
 (0)