-
Notifications
You must be signed in to change notification settings - Fork 37
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
Showing
5 changed files
with
98 additions
and
4 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
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,41 @@ | ||
name: Scala Steward | ||
|
||
# This workflow will launch at 00:00 every day | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
scala-steward: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Cache sbt | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sbt | ||
~/.ivy2/cache | ||
~/.coursier | ||
key: sbt-cache-${{ runner.os }}-JVM-${{ hashFiles('project/build.properties') }} | ||
- name: Launch Scala Steward | ||
uses: scala-steward-org/scala-steward-action@v2 | ||
with: | ||
author-name: scala-steward | ||
author-email: scala-steward | ||
github-token: ${{ secrets.REPO_GITHUB_TOKEN }} | ||
repo-config: .scala-steward.conf | ||
ignore-opts-files: false | ||
- name: Cleanup | ||
run: | | ||
rm -rf "$HOME/.ivy2/local" || true | ||
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true | ||
find $HOME/.ivy2/cache -name "*-LM-SNAPSHOT*" -delete || true | ||
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.sbt -name "*.lock" -delete || 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
pull_request_rules: | ||
- name: delete head branch after merge | ||
conditions: [] | ||
actions: | ||
delete_head_branch: {} | ||
- name: automatic merge for softwaremill-ci pull requests affecting build.sbt | ||
conditions: | ||
- author=softwaremill-ci | ||
- check-success=ci | ||
- "#files=1" | ||
- files=build.sbt | ||
actions: | ||
merge: | ||
method: merge | ||
- name: automatic merge for softwaremill-ci pull requests affecting project plugins.sbt | ||
conditions: | ||
- author=softwaremill-ci | ||
- check-success=ci | ||
- "#files=1" | ||
- files=project/plugins.sbt | ||
actions: | ||
merge: | ||
method: merge | ||
- name: semi-automatic merge for softwaremill-ci pull requests | ||
conditions: | ||
- author=softwaremill-ci | ||
- check-success=ci | ||
- "#approved-reviews-by>=1" | ||
actions: | ||
merge: | ||
method: merge | ||
- name: automatic merge for softwaremill-ci pull requests affecting project build.properties | ||
conditions: | ||
- author=softwaremill-ci | ||
- check-success=ci | ||
- "#files=1" | ||
- files=project/build.properties | ||
actions: | ||
merge: | ||
method: merge | ||
- name: automatic merge for softwaremill-ci pull requests affecting .scalafmt.conf | ||
conditions: | ||
- author=softwaremill-ci | ||
- check-success=ci | ||
- "#files=1" | ||
- files=.scalafmt.conf | ||
actions: | ||
merge: | ||
method: merge |
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 @@ | ||
updates.ignore = [ | ||
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.12."}, | ||
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.13."}, | ||
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "3."} | ||
] |
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,3 @@ | ||
runner.dialect = scala3 | ||
version = 3.5.9 | ||
maxColumn = 120 |