diff --git a/.github/workflows/scala-steward.yml b/.github/workflows/scala-steward.yml new file mode 100644 index 00000000..35229339 --- /dev/null +++ b/.github/workflows/scala-steward.yml @@ -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 diff --git a/.mergify.yml b/.mergify.yml index 2e542012..c9c01cc9 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -3,44 +3,44 @@ pull_request_rules: conditions: [] actions: delete_head_branch: {} - - name: automatic merge for scala-steward pull requests affecting build.sbt + - name: automatic merge for softwaremill-ci pull requests affecting build.sbt conditions: - - author=scala-steward + - author=softwaremill-ci - check-success=build - "#files=1" - files=build.sbt actions: merge: method: merge - - name: automatic merge for scala-steward pull requests affecting project plugins.sbt + - name: automatic merge for softwaremill-ci pull requests affecting project plugins.sbt conditions: - - author=scala-steward + - author=softwaremill-ci - check-success=build - "#files=1" - files=project/plugins.sbt actions: merge: method: merge - - name: semi-automatic merge for scala-steward pull requests + - name: semi-automatic merge for softwaremill-ci pull requests conditions: - - author=scala-steward + - author=softwaremill-ci - check-success=build - "#approved-reviews-by>=1" actions: merge: method: merge - - name: automatic merge for scala-steward pull requests affecting project build.properties + - name: automatic merge for softwaremill-ci pull requests affecting project build.properties conditions: - - author=scala-steward + - author=softwaremill-ci - check-success=build - "#files=1" - files=project/build.properties actions: merge: method: merge - - name: automatic merge for scala-steward pull requests affecting .scalafmt.conf + - name: automatic merge for softwaremill-ci pull requests affecting .scalafmt.conf conditions: - - author=scala-steward + - author=softwaremill-ci - check-success=build - "#files=1" - files=.scalafmt.conf diff --git a/.scala-steward.conf b/.scala-steward.conf index c2cce4bb..007ff842 100644 --- a/.scala-steward.conf +++ b/.scala-steward.conf @@ -1 +1,5 @@ -updates.ignore = [ { groupId = "org.scala-lang" } ] \ No newline at end of file +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."} +]