-
Notifications
You must be signed in to change notification settings - Fork 35
64 lines (53 loc) · 1.41 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
name: Build and test
on:
push:
branches: '*'
# pull_request:
# branches: '*'
jobs:
build-all-versions:
timeout-minutes: 30
strategy:
matrix:
scala: [ "2.12.19", "2.13.13" ]
spark: [ "3.4.2", "3.5.1" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11
check-latest: true
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/jdks
key: "${{ runner.os }}-gradle-spark-${{ matrix.spark }}-${{ matrix.scala }}"
restore-keys: |
${{ runner.os }}-gradle-
- name: Publish plugins to maven local
run: >
./gradlew
compiler-plugin:publishToMavenLocal
gradle-plugin:publishToMavenLocal
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: |
-Pspark=${{ matrix.spark }}
-Pscala=${{ matrix.scala }}
clean
test
--scan
# qodana:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: 'Qodana Scan'
# uses: JetBrains/[email protected]
# vim: ts=2:sts=2:sw=2:expandtab