Skip to content

Commit 881610b

Browse files
authored
Adds github action to check build and test on commit to master (#278)
* Added github action for build
1 parent 6626db2 commit 881610b

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags: ["*"]
8+
9+
jobs:
10+
sbt:
11+
name: sbt compile
12+
runs-on: ubuntu-20.04
13+
if: github.repository == 'debasishg/scala-redis'
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Set up JDK 11
20+
uses: olafurpg/setup-scala@v10
21+
- name: Compile and test
22+
run: |-
23+
sbt clean compile test
24+

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ lazy val redisClient = (project in file(".")).settings(coreSettings : _*)
55
lazy val commonSettings: Seq[Setting[_]] = Seq(
66
organization := "net.debasishg",
77
version := "3.40",
8-
scalaVersion := "2.12.10",
9-
crossScalaVersions := Seq("2.12.14", "2.11.12", "2.10.7", "2.13.6"),
8+
scalaVersion := "2.13.6",
9+
crossScalaVersions := Seq("2.12.14", "2.11.12", "2.10.7", "2.12.10"),
1010

1111
scalacOptions in Compile ++= Seq( "-unchecked", "-feature", "-language:postfixOps", "-deprecation" ),
1212

0 commit comments

Comments
 (0)