Skip to content

Commit

Permalink
Merge pull request #88 from Atry/update-template
Browse files Browse the repository at this point in the history
Update template
  • Loading branch information
Atry authored Nov 4, 2021
2 parents f253418 + 8cdba17 commit 2cbf8a5
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 40 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Scala CI

on:
- push
- pull_request

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
scala:
- 2.12.8

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: 'adopt'
- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ project/plugins/project/
secret/
local.sbt
secret/
.metals/
.bloop/
metals.sbt
.bsp/sbt.json
5 changes: 5 additions & 0 deletions .gitpod.yml
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==
4 changes: 2 additions & 2 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "1.5.1"
maxColumn = 120
version = "2.2.2"
maxColumn = 120
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.watcherExclude": {
"**/target": true
}
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.3.10
sbt.version=1.5.5
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "7.2.0")
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "8.0.0")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.2")

Expand Down

0 comments on commit 2cbf8a5

Please sign in to comment.