Skip to content

Commit d7dd07c

Browse files
committed
run build for all support scala versions
1 parent bd7e10c commit d7dd07c

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ jobs:
2626
build:
2727
strategy:
2828
matrix:
29-
java: [ '8', '11', '17' ]
30-
os: [ 'ubuntu-latest' ]
29+
os: [ubuntu-latest]
30+
scala: [2.10.7, 2.11.12, 2.12.15, 2.13.7, 3.0.2]
31+
java: ['8', '11', '17']
3132
runs-on: ${{ matrix.os }}
3233
steps:
3334
- uses: actions/checkout@v2
@@ -36,5 +37,16 @@ jobs:
3637
with:
3738
java-version: ${{ matrix.java }}
3839
distribution: 'zulu'
40+
- name: Cache sbt
41+
uses: actions/cache@v2
42+
with:
43+
path: |
44+
~/.sbt
45+
~/.ivy2/cache
46+
~/.coursier/cache/v1
47+
~/.cache/coursier/v1
48+
~/AppData/Local/Coursier/Cache/v1
49+
~/Library/Caches/Coursier/v1
50+
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
3951
- name: Build
40-
run: sbt -batch "+ test"
52+
run: sbt ++${{ matrix.scala }} test

project/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import sbt._
1919
object Dependencies {
2020
val scala210 = "2.10.7"
2121
val scala211 = "2.11.12"
22-
val scala212 = "2.12.10"
22+
val scala212 = "2.12.15"
2323
val scala213 = "2.13.7"
2424
val scala3 = "3.0.2"
2525

0 commit comments

Comments
 (0)