Skip to content

Commit 36a2030

Browse files
Use Shared GitHub Actions
1 parent 9929303 commit 36a2030

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

.github/workflows/maven.yml .github/workflows/maven-verify.yml

+6-28
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,13 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: Java CI
18+
name: Verify
1919

20-
on: [push, pull_request]
20+
on:
21+
push:
22+
pull_request:
2123

2224
jobs:
2325
build:
24-
strategy:
25-
matrix:
26-
os: [ubuntu-latest, windows-latest, macOS-latest]
27-
fail-fast: false
28-
29-
runs-on: ${{ matrix.os }}
30-
31-
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v2
34-
35-
- name: Set up cache for ~/.m2/repository
36-
uses: actions/cache@v2
37-
with:
38-
path: ~/.m2/repository
39-
key: maven-${{ matrix.os }}-${{ hashFiles('**/pom.xml') }}
40-
restore-keys: |
41-
maven-${{ matrix.os }}-
42-
43-
- name: Set up JDK 1.8
44-
uses: actions/setup-java@v1
45-
with:
46-
java-version: 1.8
47-
48-
- name: Build with Maven
49-
run: mvn -e -B -V clean verify -P run-its
26+
name: Verify
27+
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2

0 commit comments

Comments
 (0)