Skip to content

Commit ead78a2

Browse files
slawekjaranowskislachiewicz
authored andcommitted
Verify project build by GitHub Action
1 parent 82eb55e commit ead78a2

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/maven.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
18+
name: GitHub CI
19+
20+
on: [ push, pull_request ]
21+
22+
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@v2
36+
37+
- name: Set up cache for ~./m2/repository
38+
uses: actions/cache@v2
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@v2
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

0 commit comments

Comments
 (0)