-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32e6b3c
commit f0682e1
Showing
9 changed files
with
97 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build | ||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Branch Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Java And Sbt | ||
uses: olafurpg/setup-scala@v14 | ||
with: | ||
java-version: [email protected] | ||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
$HOME/.cache/coursier | ||
$HOME/.ivy2/cache | ||
$HOME/.sbt | ||
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | ||
- name: Build | ||
run: sbt build | ||
- name: Upload To Codecov | ||
uses: codecov/codecov-action@v2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,13 @@ | ||
ThisBuild / scalaVersion := "2.13.10" | ||
import laserdisc.sbt.CompileTarget.Scala2And3 | ||
import laserdisc.sbt.LaserDiscDevelopers | ||
|
||
lazy val publishSettings = Seq( | ||
Test / publishArtifact := false, | ||
pomIncludeRepository := (_ => false), | ||
organization := "io.laserdisc", | ||
homepage := Some(url("http://laserdisc.io/console4s")), | ||
developers := List(Developer("barryoneill", "Barry O'Neill", "", url("https://github.com/barryoneill"))), | ||
licenses := Seq("MIT" -> url("https://raw.githubusercontent.com/laserdisc-io/console4s/master/LICENSE")), | ||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/laserdisc-io/console4s/tree/master"), | ||
"scm:git:[email protected]:laserdisc-io/console4s.git", | ||
"scm:git:[email protected]:laserdisc-io/console4s.git" | ||
) | ||
) | ||
) | ||
ThisBuild / laserdiscCompileTarget := Scala2And3 | ||
ThisBuild / laserdiscRepoName := "console4s" | ||
|
||
val root = | ||
(project in file(".")) | ||
.settings( | ||
name := "console4s", | ||
Dependencies.Testing, | ||
publishSettings, | ||
Seq( | ||
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"), | ||
scalacOptions ++= Seq( | ||
"-encoding", | ||
"UTF-8", | ||
"-deprecation", | ||
"-unchecked", | ||
"-feature", | ||
"-language:higherKinds", | ||
"-language:implicitConversions", | ||
"-language:postfixOps", | ||
"-Xlint:_,-byname-implicit", | ||
"-Xfatal-warnings" | ||
) | ||
), | ||
addCommandAlias("format", ";scalafmtAll;scalafmtSbt"), | ||
addCommandAlias("checkFormat", ";scalafmtCheckAll;scalafmtSbtCheck"), | ||
addCommandAlias("fullTest", ";clean;checkFormat;test") | ||
) | ||
.enablePlugins(GitVersioning) | ||
val root = (project in file(".")) | ||
.settings( | ||
name := "console4s", | ||
developers := List(LaserDiscDevelopers.Barry), | ||
Dependencies.Testing | ||
) | ||
.enablePlugins(LaserDiscDefaultsPlugin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
sbt.version = 1.8.0 | ||
# ------------------ autogenerated file - do not edit ------------------- | ||
# This file was generated by sbt-laserdisc-defaults | ||
# | ||
# Please check in any changes generated in this file (for IDE support) | ||
# | ||
# To make changes, please publish a new version of the plugin at: | ||
# https://github.com/laserdisc-io/sbt-laserdisc-defaults | ||
# | ||
# To temporarily disable generation, set this at the top of build.sbt: | ||
# ThisBuild / laserdiscSBTVersionGenOn := false | ||
# ----------------------------------------------------------------------- | ||
|
||
sbt.version = 1.10.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") | ||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11") | ||
//addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0") | ||
//addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") | ||
//addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11") | ||
addSbtPlugin("io.laserdisc" % "sbt-laserdisc-defaults" % "0.1.1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters