Skip to content

feat: Support Either.get inspection on Scala 3 #742

feat: Support Either.get inspection on Scala 3

feat: Support Either.get inspection on Scala 3 #742

Workflow file for this run

name: PR checks
on:
pull_request:
jobs:
test:
name: Test using JDK ${{matrix.java}} and Scala ${{matrix.scala}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: ['8', '11']
scala:
- 2.12.19
- 2.12.20
- 2.13.16
- 2.13.17
- 3.3.7
- 3.7.3
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
cache: sbt
distribution: adopt
java-version: ${{matrix.java}}
- uses: sbt/setup-sbt@v1
- uses: actions/cache@v4
with:
path: ~/.cache/coursier
key: coursier-${{hashFiles('**/*.sbt')}}
restore-keys: coursier-
- uses: actions/cache@v4
with:
path: ~/.sbt
key: sbt-${{hashFiles('**/*.sbt')}}-${{hashFiles('project/build.properties')}}-${{matrix.scala}}
restore-keys: sbt-
- run: sbt ++${{matrix.scala}}! test
additional-checks:
name: Run additional checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
cache: sbt
distribution: adopt
java-version: 11
- uses: sbt/setup-sbt@v1
- uses: actions/cache@v4
with:
path: ~/.cache/coursier
key: coursier-${{hashFiles('**/*.sbt')}}
restore-keys: coursier-
- uses: actions/cache@v4
with:
path: ~/.sbt
key: sbt-${{hashFiles('**/*.sbt')}}-${{hashFiles('project/build.properties')}}
restore-keys: sbt-
- name: Generate coverage report
run: sbt clean coverage test coverageReport
- uses: codecov/codecov-action@v4
- name: Run Scalafix check
run: sbt fixCheck
- name: Check formatting
run: sbt ++scalafmtCheckAll
- name: Run Scapegoat
run: |
sbt 'set version := "99.0-SNAPSHOT"; publishLocal'
sbt -Dadd-scapegoat-plugin=true 'set name := "scapegoat-test"; set scapegoatVersion in ThisBuild := "99.0-SNAPSHOT"; scapegoat'