|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# 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, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +name: Java CI with Maven |
| 19 | + |
| 20 | +on: |
| 21 | + push: |
| 22 | + branches: [ master ] |
| 23 | + pull_request: |
| 24 | + branches: [ master ] |
| 25 | + |
| 26 | +jobs: |
| 27 | + build: |
| 28 | + |
| 29 | + runs-on: ubuntu-latest |
| 30 | + strategy: |
| 31 | + matrix: |
| 32 | + java: ['8'] |
| 33 | + spark-version: ['2.4.8'] |
| 34 | + scala-version: ['2.11', '2.12'] |
| 35 | + |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v2 |
| 38 | + - name: Set up JDK ${{ matrix.java }} |
| 39 | + uses: actions/setup-java@v2 |
| 40 | + with: |
| 41 | + java-version: ${{ matrix.java }} |
| 42 | + distribution: 'zulu' |
| 43 | + cache: maven |
| 44 | + - name: Change scala version to ${{ matrix.scala-version }} |
| 45 | + run: ./dev/change-scala-version.sh ${{ matrix.scala-version }} |
| 46 | + shell: bash |
| 47 | + - name: Build with spark ${{ matrix.spark-version }} |
| 48 | + run: mvn -B clean verify -Dscala-${{ matrix.scala-version }} -Dspark.version=${{ matrix.spark-version }} |
0 commit comments