-
Notifications
You must be signed in to change notification settings - Fork 17
76 lines (65 loc) · 2.05 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
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
types: [ opened, reopened, synchronize ]
jobs:
tests:
name: scala-${{ matrix.scala }} jdk-${{ matrix.java }} tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [8, 11]
scala: [2.12.17, 2.13.8, 3.1.2]
exclude:
- java: 8
scala: 2.13.1
- java: 8
scala: 3.1.2
- java: 11
scala: 2.12.17
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.${{ matrix.java }}"
- name: Cache SBT Coursier directory
uses: actions/cache@v1
with:
path: ~/.cache/coursier/v1
key: ${{ runner.os }}-coursier-${{ hashFiles('**/*.sbt') }}
restore-keys: |
${{ runner.os }}-coursier-
- name: Cache SBT directory
uses: actions/cache@v1
with:
path: ~/.sbt
key: |
${{ runner.os }}-sbt-${{ hashFiles('project/build.properties') }}-${{ hashFiles('project/plugins.sbt') }}
restore-keys: ${{ runner.os }}-sbt-
- name: Run checks
run: sbt scalafmtCheckAll
- name: Start docker dependencies
run: sh start-dependencies.sh
- name: Run Functional Tests for Java ${{ matrix.java }}, Scala ${{ matrix.scala }}
run: sbt ++${{ matrix.scala }} it:test
- name: Run Unit Tests for Java ${{ matrix.java }}, Scala ${{ matrix.scala }}
run: sbt test
mima:
name: Mima binary compatibility test
needs: tests
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8 ]
scala: [ 2.12.11, 2.13.8 ]
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.${{ matrix.java }}"
- name: Run Mima binary compatibility test for Java ${{ matrix.java }} and Scala ${{ matrix.scala }}
run: sbt mimaReportBinaryIssues