Skip to content

Commit 46a5f40

Browse files
cstamasslachiewicz
authored andcommitted
Add GH CI
To validate PRs w/ running UTs and ITs
1 parent 538f484 commit 46a5f40

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/maven.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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: Java CI
19+
20+
on: [push, pull_request]
21+
22+
jobs:
23+
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

0 commit comments

Comments
 (0)