Skip to content

Commit d736833

Browse files
committed
Test major Java versions with GitHub actions as documented on
https://github.com/actions/setup-java
1 parent 1b296e4 commit d736833

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: Java CI
17+
18+
on: [push]
19+
20+
jobs:
21+
build:
22+
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
java: [ 8, 9, 10, 11, 12, 13, 14 ]
27+
28+
steps:
29+
- uses: actions/checkout@v1
30+
- name: Set up JDK ${{ matrix.java }}
31+
uses: actions/setup-java@v1
32+
with:
33+
java-version: ${{ matrix.java }}
34+
- name: Build with Maven
35+
run: mvn -V apache-rat:check package --file pom.xml

0 commit comments

Comments
 (0)