-
Notifications
You must be signed in to change notification settings - Fork 34
43 lines (40 loc) · 1.15 KB
/
ci.yaml
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
name: Continuous Integration
on:
workflow_call:
pull_request:
branches: ['*']
push:
branches: ['*']
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build-legacy:
name: Build and Test on legacy JDK and Spark
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
- uses: coursier/cache-action@v6
with:
extraKey: ${{ runner.os }}
- uses: coursier/setup-action@v1
with:
jvm: adopt:1.8
- name: Build, test, and package project on "legacy" Spark
run: bin/sbt clean compile test package makePom
build-modern:
name: Build and Test on Modern JDK and Spark
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
- uses: coursier/cache-action@v6
with:
extraKey: ${{ runner.os }}
- uses: coursier/setup-action@v1
with:
jvm: adoptium:1.17
- name: Build, test, and package project on Spark 3.5
run: bin/sbt clean compile test package makePom -DsparkVersion=3.5.1
env:
MODERN_JAVA: true