-
Notifications
You must be signed in to change notification settings - Fork 2
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 #198 from Atry/template
Update template
- Loading branch information
Showing
5 changed files
with
59 additions
and
32 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Scala Steward: Reformat with scalafmt 3.1.2 | ||
fb6cfb8aea15a1b339e3ed69e1e96acd7df4cae6 | ||
|
||
# Scala Steward: Reformat with scalafmt 3.6.1 | ||
bb5f5e3753ae981867186bc2e4f0e99bd354aef6 |
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 |
---|---|---|
@@ -1,44 +1,48 @@ | ||
name: Scala CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
push: | ||
branches-ignore: | ||
- "update/**" | ||
tags: | ||
- "v*" | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
scala: | ||
- 2.12.15 | ||
- 2.12.15 | ||
|
||
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/local/ | ||
~/.ivy2/cache/ | ||
~/.sbt/ | ||
~/.coursier/ | ||
key: | | ||
${{ runner.os }}-${{matrix.scala}}-${{ hashFiles('**/*.sbt') }} | ||
${{ runner.os }}-${{matrix.scala}}- | ||
- name: Run tests | ||
run: sbt ++${{ matrix.scala }} test scripted | ||
- 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 | ||
- 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 scripted | ||
- 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 |
---|---|---|
|
@@ -4,6 +4,6 @@ secret/ | |
.metals/ | ||
.bloop/ | ||
metals.sbt | ||
.bsp/sbt.json | ||
.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
runner.dialect = "scala212" | ||
runner.dialect = scala212source3 | ||
version = "3.7.1" | ||
maxColumn = 80 |