Skip to content

Commit

Permalink
Config
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Sep 13, 2022
1 parent 21d4e7a commit 53bdcdf
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
# run on external PRs, but not on internal PRs since those will be run by push to branch
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-20.04
env:
STTP_NATIVE: 1
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -44,8 +42,6 @@ jobs:
needs: [ci]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-20.04
env:
STTP_NATIVE: 1
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/scala-steward.yml
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
49 changes: 49 additions & 0 deletions .mergify.yml
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
5 changes: 5 additions & 0 deletions .scala-steward.conf
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."}
]
3 changes: 3 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
runner.dialect = scala3
version = 3.5.9
maxColumn = 120

0 comments on commit 53bdcdf

Please sign in to comment.