Skip to content

Commit b50f1fe

Browse files
committed
Github action
1 parent 0d82565 commit b50f1fe

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
tests:
8+
name: scala-${{ matrix.scala }} jdk-${{ matrix.java }} tests
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
java: [8]
15+
scala: [2.11.12, 2.12.10]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: olafurpg/setup-scala@v10
20+
with:
21+
java-version: "adopt@1.${{ matrix.java }}"
22+
23+
- name: Cache SBT Coursier directory
24+
uses: actions/cache@v1
25+
with:
26+
path: ~/.cache/coursier/v1
27+
key: ${{ runner.os }}-coursier-${{ hashFiles('**/*.sbt') }}
28+
restore-keys: |
29+
${{ runner.os }}-coursier-
30+
- name: Cache SBT directory
31+
uses: actions/cache@v1
32+
with:
33+
path: ~/.sbt
34+
key: |
35+
${{ runner.os }}-sbt-${{ hashFiles('project/build.properties') }}-${{ hashFiles('project/plugins.sbt') }}
36+
restore-keys: ${{ runner.os }}-sbt-
37+
38+
- name: Run Tests for Kafka 0.10.x, Java ${{ matrix.java }} and Scala ${{ matrix.scala }}
39+
run: sbt -J-Xmx6144m kafka10/test
40+
41+
- name: Run Tests for Kafka 0.11.x, Java ${{ matrix.java }} and Scala ${{ matrix.scala }}
42+
run: sbt -J-Xmx6144m kafka11/test
43+
44+
- name: Run Tests for Kafka 1.x.x, Java ${{ matrix.java }} and Scala ${{ matrix.scala }}
45+
run: sbt -J-Xmx6144m kafka1x/test

0 commit comments

Comments
 (0)