build(deps): update dependency scala to v3.3.1 #24
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: 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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Setup scala environment | |
uses: olafurpg/setup-scala@v14 | |
with: | |
java-version: openjdk@1.17 | |
- name: Cache sbt | |
uses: actions/cache@v3 | |
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 }} |