1
- #
2
- # Licensed to the Apache Software Foundation (ASF) under one
3
- # or more contributor license agreements. See the NOTICE file
4
- # distributed with this work for additional information
5
- # regarding copyright ownership. The ASF licenses this file
6
- # to you under the Apache License, Version 2.0 (the
7
- # "License"); you may not use this file except in compliance
8
- # with the License. You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing,
13
- # software distributed under the License is distributed on an
14
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
- # KIND, either express or implied. See the License for the
16
- # specific language governing permissions and limitations
17
- # under the License.
18
- #
19
-
20
- name : CI BOT
1
+ name : Java CI
21
2
22
3
on :
23
- issue_comment :
24
- types : [created]
4
+ push :
5
+ branches :
6
+ - master
7
+ - ' release-*'
8
+ pull_request :
9
+ branches :
10
+ - master
11
+ - ' release-*'
25
12
26
13
jobs :
27
- bot :
14
+ build :
28
15
runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ include :
19
+ - scala : " scala-2.11"
20
+ spark : " spark2"
21
+ - scala : " scala-2.12"
22
+ spark : " spark3"
29
23
steps :
30
- - name : clone repository
31
- uses : actions/checkout@v2
32
-
33
- - name : bot actions
34
- uses : actions/github-script@v1
35
- env :
36
- PROVIDER : ' apache'
37
- REPOSITORY : ' hudi'
38
- HUDI_TRAVIS_ORG_TOKEN : ${{ secrets.HUDI_TRAVIS_ORG_TOKEN }}
24
+ - uses : actions/checkout@v2
25
+ - name : Set up JDK 8
26
+ uses : actions/setup-java@v2
39
27
with :
40
- script : |
41
- const path = require('path')
42
- const scriptPath = path.resolve('.github/actions/bot/src/action.js')
43
- require(scriptPath)({core}, {context}, {github})
28
+ java-version : ' 8'
29
+ distribution : ' adopt'
30
+ architecture : x64
31
+ - name : Build Project
32
+ env :
33
+ SCALA_PROFILE : ${{ matrix.scala }}
34
+ SPAKR_PROFILE : ${{ matrix.spark }}
35
+ run : mvn install -P "$SCALA_PROFILE,$SPAKR_PROFILE" -DskipTests=true -Dmaven.javadoc.skip=true -B -V
0 commit comments