-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update/scalatest-3.2.2
- Loading branch information
Showing
10 changed files
with
112 additions
and
52 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,59 @@ | ||
name: Scala CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
scala: | ||
- 2.11.12 | ||
- 2.12.15 | ||
- 2.13.7 | ||
sbt-args: | ||
- --addPluginSbtFile=project/plugins.sbt.scalajs06 | ||
- '' | ||
exclude: | ||
- scala: 2.12.15 | ||
sbt-args: --addPluginSbtFile=project/plugins.sbt.scalajs06 | ||
- scala: 2.13.7 | ||
sbt-args: --addPluginSbtFile=project/plugins.sbt.scalajs06 | ||
include: | ||
- scala: 2.12.13 | ||
sbt-args: --addPluginSbtFile=project/plugins.sbt.scalajs06 | ||
- scala: 2.13.4 | ||
sbt-args: --addPluginSbtFile=project/plugins.sbt.scalajs06 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Need the git history for sbt-dynver to determine the version | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: temurin | ||
- name: Cache SBT | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/local/ | ||
~/.ivy2/cache/ | ||
~/.sbt/ | ||
~/.coursier/ | ||
key: | | ||
${{ runner.os }}-${{matrix.scala}}-${{ hashFiles('**/*.sbt') }} | ||
${{ runner.os }}-${{matrix.scala}}- | ||
- name: Run tests | ||
run: sbt ++${{ matrix.scala }} test | ||
- name: Publish to Maven Central Repository | ||
env: | ||
GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}} | ||
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' }} | ||
run: sbt ++${{ matrix.scala }} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}-$$ ${{ matrix.scala }}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease |
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,9 @@ | ||
target/ | ||
local.sbt | ||
secret/ | ||
.metals/ | ||
.bloop/ | ||
metals.sbt | ||
.bsp/ | ||
.vscode/launch.json | ||
*.scala.semanticdb |
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,5 @@ | ||
image: igeolise/scalajs-test-runner:latest | ||
vscode: | ||
extensions: | ||
- [email protected]:wQBBM+lKILHBqOqlqW60xA== | ||
- [email protected]:EyAIfy0ykjUn9htpw3f7GA== |
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,2 +1,3 @@ | ||
version = "1.5.1" | ||
maxColumn = 120 | ||
runner.dialect = "scala213" | ||
version = "3.1.1" | ||
maxColumn = 80 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.watcherExclude": { | ||
"**/target": true | ||
} | ||
} |
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 +1 @@ | ||
sbt.version=1.3.0 | ||
sbt.version=1.5.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
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,22 @@ | ||
// An optional sbt file to replace Scala.js 1.0 with 0.6 | ||
dependencyOverrides += Defaults.sbtPluginExtra( | ||
"org.scala-js" % "sbt-scalajs" % "0.6.33", | ||
sbtBinaryVersion.value, | ||
scalaBinaryVersion.value, | ||
) | ||
|
||
Compile / sourceGenerators += Def.task { | ||
val file = (Compile / sourceManaged).value / "SkipPublishForNonScalaJSProjects.scala" | ||
IO.write(file, """ | ||
import scalajscrossproject.ScalaJSCrossPlugin.autoImport._ | ||
import sbtcrossproject.CrossPlugin.autoImport._ | ||
import sbt._, Keys._ | ||
object SkipPublishForNonScalaJSProjects extends AutoPlugin { | ||
override def trigger = allRequirements | ||
override def projectSettings = Seq( | ||
publish / skip := crossProjectPlatform.?.value != Some(JSPlatform) | ||
) | ||
} | ||
""") | ||
Seq(file) | ||
}.taskValue |