Skip to content

Commit

Permalink
Adds github action to check build and test on commit to master (debas…
Browse files Browse the repository at this point in the history
…ishg#278)

* Added github action for build
  • Loading branch information
debasishg authored Sep 10, 2021
1 parent 6626db2 commit 881610b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on:
push:
branches:
- master
tags: ["*"]

jobs:
sbt:
name: sbt compile
runs-on: ubuntu-20.04
if: github.repository == 'debasishg/scala-redis'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: olafurpg/setup-scala@v10
- name: Compile and test
run: |-
sbt clean compile test
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ lazy val redisClient = (project in file(".")).settings(coreSettings : _*)
lazy val commonSettings: Seq[Setting[_]] = Seq(
organization := "net.debasishg",
version := "3.40",
scalaVersion := "2.12.10",
crossScalaVersions := Seq("2.12.14", "2.11.12", "2.10.7", "2.13.6"),
scalaVersion := "2.13.6",
crossScalaVersions := Seq("2.12.14", "2.11.12", "2.10.7", "2.12.10"),

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

Expand Down

0 comments on commit 881610b

Please sign in to comment.