Skip to content

chore(deps): update dependency scalafmt to v3.8.2 #194

chore(deps): update dependency scalafmt to v3.8.2

chore(deps): update dependency scalafmt to v3.8.2 #194

Workflow file for this run

name: Test
on:
push:
branches-ignore:
- main
paths-ignore:
- CHANGELOG.md
- README.md
- CONTRIBUTING.md
- renovate.json
- ".github/workflows/**"
- .releaserc.yml
- "package*.json"
workflow_call:
secrets:
CODECOV_TOKEN:
description: "Codecov token"
required: true
SONAR_TOKEN:
description: "Sonar token"
required: true
jobs:
test:
name: Build and test
runs-on: ubuntu-22.04
env:
TERM: dumb
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup scala environment
uses: olafurpg/setup-scala@v14
with:
java-version: openjdk@1.17
- name: Cache sbt
uses: actions/cache@v4
with:
path: |
~/.sbt
~/.coursier
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }}
- name: Lint with scalafmt
run: sbt scalafmtCheckAll
- name: Check with scalafix
run: sbt 'scalafixAll --check'
- name: Test
run: sbt clean coverage test coverageReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: target/scala-3.3.0/scoverage-report
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
verbose: true
- name: SonarCloud scan fixed
uses: pervasive-cats/sonarcloud-scoverage-fix@v1.0.1
with:
scoverageReport: target/scala-3.3.0/scoverage-report/scoverage.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}