Skip to content

Commit 38c9b85

Browse files
authored
[HUDI-2280] Use GitHub Actions to build different scala spark versions (apache#3556)
1 parent f66e1ce commit 38c9b85

File tree

7 files changed

+32
-299
lines changed

7 files changed

+32
-299
lines changed

.github/actions/bot/package.json

-36
This file was deleted.

.github/actions/bot/src/action.js

-100
This file was deleted.

.github/workflows/bot.yml

+28-36
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,35 @@
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
212

223
on:
23-
issue_comment:
24-
types: [created]
4+
push:
5+
branches:
6+
- master
7+
- 'release-*'
8+
pull_request:
9+
branches:
10+
- master
11+
- 'release-*'
2512

2613
jobs:
27-
bot:
14+
build:
2815
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"
2923
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
3927
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

.travis.yml

-50
This file was deleted.

pom.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,6 @@
14181418
<profile>
14191419
<id>scala-2.11</id>
14201420
</profile>
1421-
14221421
<profile>
14231422
<id>scala-2.12</id>
14241423
<properties>
@@ -1460,6 +1459,10 @@
14601459
</build>
14611460
</profile>
14621461

1462+
<!-- Exists for backwards compatibility; profile doesn't do anything -->
1463+
<profile>
1464+
<id>spark2</id>
1465+
</profile>
14631466
<profile>
14641467
<id>spark3</id>
14651468
<properties>

scripts/report_coverage.sh

-34
This file was deleted.

scripts/run_travis_tests.sh

-42
This file was deleted.

0 commit comments

Comments
 (0)