-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (52 loc) · 1.36 KB
/
scala.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
name: ScalaCI
on:
push:
branches:
- "main"
- "support/*"
paths:
- "pramen/**"
- ".github/workflows/scala.yml"
pull_request:
branches:
- "main"
- "support/*"
paths:
- "pramen/**"
- ".github/workflows/scala.yml"
jobs:
build-sbt:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala: [2.11.12, 2.12.19, 2.13.13]
spark: [2.4.8, 3.3.4, 3.4.2, 3.5.1]
exclude:
- scala: 2.11.12
spark: 3.3.4
- scala: 2.11.12
spark: 3.4.2
- scala: 2.11.12
spark: 3.5.1
- scala: 2.12.19
spark: 2.4.8
- scala: 2.13.13
spark: 2.4.8
name: Test Spark ${{matrix.spark}} on Scala ${{matrix.scala}}
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: coursier/cache-action@v5
- name: Setup JDK and sbt
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- name: Build and run unit tests
working-directory: ./pramen
run: sbt ++${{matrix.scala}} test -DSPARK_VERSION=${{matrix.spark}}
- name: Run integration tests
working-directory: ./pramen
run: sbt ++${{matrix.scala}} integration:test -DSPARK_VERSION=${{matrix.spark}}