-
Notifications
You must be signed in to change notification settings - Fork 6
81 lines (73 loc) · 2.69 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: build
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- scalaVersion: 2.11
sparkVersion: 2.3.2
scalaCompt: 2.11.12
- scalaVersion: 2.11
sparkVersion: 2.4.8
scalaCompt: 2.11.12
- scalaVersion: 2.12
sparkVersion: 2.4.8
scalaCompt: 2.12.15
- scalaVersion: 2.12
sparkVersion: 3.0.3
scalaCompt: 2.12.15
- scalaVersion: 2.12
sparkVersion: 3.1.2
scalaCompt: 2.12.15
- scalaVersion: 2.12
sparkVersion: 3.2.0
scalaCompt: 2.12.15
- scalaVersion: 2.13
sparkVersion: 3.2.0
scalaCompt: 2.13.7
- scalaVersion: 2.12
sparkVersion: 3.3.0
scalaCompt: 2.12.15
- scalaVersion: 2.13
sparkVersion: 3.3.0
scalaCompt: 2.13.7
- scalaVersion: 2.13
sparkVersion: 3.4.0
scalaCompt: 2.13.10
- scalaVersion: 2.13
sparkVersion: 3.5.0
scalaCompt: 2.13.12
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Setup Gradle Dependencies Cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches--PscalaVersion=${{ matrix.scalaVersion }} -PsparkVersion=${{ matrix.sparkVersion }} -PscalaCompt=${{ matrix.scalaCompt }} -${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
- name: Setup Gradle Wrapper Cache
uses: actions/[email protected]
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Style Check
run: ./gradlew :spark:scalastyleMainCheck -PscalaVersion=${{ matrix.scalaVersion }} -PsparkVersion=${{ matrix.sparkVersion }} -PscalaCompt=${{ matrix.scalaCompt }}
- name: Test
run: ./gradlew test -x :flink:test -PscalaVersion=${{ matrix.scalaVersion }} -PsparkVersion=${{ matrix.sparkVersion }} -PscalaCompt=${{ matrix.scalaCompt }}
# run: ./gradlew test aggregateScoverage -PscalaVersion=${{ matrix.scalaVersion }} -PsparkVersion=${{ matrix.sparkVersion }} -PscalaCompt=${{ matrix.scalaCompt }}
# - uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
# directory: ./build/reports/scoverage/
# verbose: true