Skip to content

Commit c49623a

Browse files
committed
[github actions] ASF license, OS matrix, run on push and PR
1 parent 6c6b834 commit c49623a

1 file changed

Lines changed: 34 additions & 9 deletions

File tree

.github/workflows/maven.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,42 @@
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: Java CI
219

3-
on: [push]
20+
on: [push, pull_request]
421

522
jobs:
623
build:
724

8-
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest, windows-latest, macOS-latest]
28+
fail-fast: false
29+
30+
runs-on: ${{ matrix.os }}
931

1032
steps:
11-
- uses: actions/checkout@v1
12-
- name: Set up JDK 1.8
13-
uses: actions/setup-java@v1
14-
with:
15-
java-version: 1.8
16-
- name: Build with Maven
17-
run: mvn install -e -B -V -nsu --no-transfer-progress -P run-its
33+
- name: Checkout
34+
uses: actions/checkout@v1
35+
36+
- name: Set up JDK 1.8
37+
uses: actions/setup-java@v1
38+
with:
39+
java-version: 1.8
40+
41+
- name: Build with Maven
42+
run: mvn install -e -B -V -nsu --no-transfer-progress -P run-its

0 commit comments

Comments
 (0)