Update sbt-wartremover, wartremover to 3.2.5 #786
Workflow file for this run
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 Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pre_job: | |
# continue-on-error: true # Uncomment once integration is finished | |
runs-on: ubuntu-latest | |
# Map a step output to a job output | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@master | |
with: | |
concurrent_skipping: 'never' | |
paths_ignore: '["**.md"]' | |
build: | |
needs: pre_job | |
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- 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 |