Skip to content

Commit

Permalink
Build for Scala 2.12 and 2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Aug 27, 2024
1 parent 36422ae commit 66a327f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- main
jobs:
test:
test-213:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -21,16 +21,26 @@ jobs:
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sbt coverage test coverageReport
run: sbt '++ 2.13.10' coverage test coverageReport
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

test-212:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sbt '++ 2.12.15' test

publish:
if: ${{ github.event_name != 'pull_request' }}
needs: [test]
needs: [test-213, test-212]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Dependencies._

ThisBuild / scalaVersion := "2.13.10"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "io.github.dataunitylab"
ThisBuild / organizationName := "Data Unity Lab"
Expand All @@ -24,6 +23,7 @@ val nonConsoleCompilerOptions = Seq(
lazy val root = (project in file("."))
.settings(
name := "Fuzzy Sets",
crossScalaVersions := Seq("2.12.15", "2.13.10"),
libraryDependencies += scalaTest % Test,
scalacOptions ++= nonConsoleCompilerOptions
)
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
addSbtPlugin("io.kevinlee" % "sbt-github-pages" % "0.7.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0")
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("org.scoverage" %% "sbt-scoverage" % "1.6.1")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "3.1.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21")

0 comments on commit 66a327f

Please sign in to comment.