-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from Atry/update-template
Update template
- Loading branch information
Showing
11 changed files
with
107 additions
and
50 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,2 @@ | ||
# Scala Steward: Reformat with scalafmt 3.1.2 | ||
fb6cfb8aea15a1b339e3ed69e1e96acd7df4cae6 |
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,20 @@ | ||
on: | ||
push: | ||
branches-ignore: | ||
- "update/**" | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: | ||
|
||
name: Launch Scala Steward | ||
|
||
jobs: | ||
scala-steward: | ||
runs-on: ubuntu-22.04 | ||
name: Launch Scala Steward | ||
steps: | ||
- name: Launch Scala Steward | ||
uses: scala-steward-org/scala-steward-action@v2 | ||
with: | ||
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }} | ||
branches: ${{ github.ref_name }} |
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,50 @@ | ||
name: Scala CI | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "update/**" | ||
tags: | ||
- "v*" | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
scala: | ||
- 2.10.7 | ||
- 2.11.12 | ||
- 2.12.11 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Need the git history for sbt-dynver to determine the version | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "11" | ||
distribution: temurin | ||
- name: Cache SBT | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.ivy2/local/ | ||
~/.ivy2/cache/ | ||
~/.sbt/ | ||
~/.coursier/ | ||
key: | | ||
${{runner.os}}-${{matrix.scala}}-${{hashFiles('**/*.sbt')}}-${{matrix.sbt-args}} | ||
${{runner.os}}-${{matrix.scala}}-${{hashFiles('**/*.sbt')}}- | ||
${{runner.os}}-${{matrix.scala}}- | ||
- name: Run tests | ||
run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} test | ||
- name: Publish to Maven Central Repository | ||
env: | ||
GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}} | ||
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' && github.event_name != 'pull_request' }} | ||
run: sbt ${{matrix.sbt-args}} ++${{ 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,4 +1,9 @@ | ||
target/ | ||
local.sbt | ||
secret/ | ||
*.class | ||
.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: | ||
- scala-lang.scala@0.3.8:wQBBM+lKILHBqOqlqW60xA== | ||
- scalameta.metals@1.9.0: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 = scala212source3 | ||
version = "3.7.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.3.4 | ||
sbt.version=1.8.2 |
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,15 +1,17 @@ | ||
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "7.1.1") | ||
addSbtPlugin( | ||
"com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.2.5" | ||
) | ||
|
||
addSbtPlugin("com.thoughtworks.sbt-scala-js-map" % "sbt-scala-js-map" % "4.0.0") | ||
|
||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.31") | ||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.32") | ||
|
||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8.1") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.17") | ||
|
||
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.0.0") | ||
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") | ||
|
||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2") | ||
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") | ||
|
||
addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.2") | ||
|
||
addSbtPlugin("com.thoughtworks.example" % "sbt-example" % "7.0.0") | ||
addSbtPlugin("com.thoughtworks.example" % "sbt-example" % "9.2.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