Update sbt-wartremover, wartremover to 3.1.7 (#373) #314
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
name: Continious Delivery | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- version.sbt | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
fetch-depth: 0 | |
token: ${{ secrets.PUSH_PERMISSIONS_TOKEN }} | |
- name: Cache SBT | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Setup Scala | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: corretto | |
- name: Test with Coverage / Static code analyse / Code style | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: | | |
sbt \ | |
-Dsonar.host.url=https://sonarcloud.io \ | |
-Dsonar.organization=gastonschabas \ | |
-Dsonar.projectKey=gastonschabas_rumble-on-scala \ | |
-Dsonar.sources=src/main/scala \ | |
-Dsonar.tests=src/test/scala \ | |
-Dsonar.scala.scalastyle.reportPaths=target/scalastyle-result.xml \ | |
-Dsonar.scala.coverage.reportPaths=target/scala-2.13/scoverage-report/scoverage.xml \ | |
clean compile coverage test it:test coverageReport scalastyle scalafmtCheckAll scalafmtSbtCheck sonarScan | |
- name: Bump version and tag | |
run: | | |
git config --global user.email "gastonschabas@gmail.com" | |
git config --global user.name "Gastón Schabas" | |
sbt "release with-defaults skip-tests" |