Update sbt-scala3-migrate to 0.7.0 #1818
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: build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
types: [ opened, reopened, synchronize ] | |
jobs: | |
tests: | |
name: scala-${{ matrix.scala }} jdk-${{ matrix.java }} tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [8, 11] | |
scala: [2.12.17, 2.13.8, 3.1.2] | |
exclude: | |
- java: 8 | |
scala: 2.13.1 | |
- java: 8 | |
scala: 3.1.2 | |
- java: 11 | |
scala: 2.12.17 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "adopt@1.${{ matrix.java }}" | |
- name: Cache SBT Coursier directory | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/coursier/v1 | |
key: ${{ runner.os }}-coursier-${{ hashFiles('**/*.sbt') }} | |
restore-keys: | | |
${{ runner.os }}-coursier- | |
- name: Cache SBT directory | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sbt | |
key: | | |
${{ runner.os }}-sbt-${{ hashFiles('project/build.properties') }}-${{ hashFiles('project/plugins.sbt') }} | |
restore-keys: ${{ runner.os }}-sbt- | |
- name: Run checks | |
run: sbt scalafmtCheckAll | |
- name: Start docker dependencies | |
run: sh start-dependencies.sh | |
- name: Run Functional Tests for Java ${{ matrix.java }}, Scala ${{ matrix.scala }} | |
run: sbt ++${{ matrix.scala }} it:test | |
- name: Run Unit Tests for Java ${{ matrix.java }}, Scala ${{ matrix.scala }} | |
run: sbt test | |
mima: | |
name: Mima binary compatibility test | |
needs: tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ 8 ] | |
scala: [ 2.12.11, 2.13.8 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "adopt@1.${{ matrix.java }}" | |
- name: Run Mima binary compatibility test for Java ${{ matrix.java }} and Scala ${{ matrix.scala }} | |
run: sbt mimaReportBinaryIssues |