Skip to content

Merge pull request #383 from scala-steward/update/scalafmt-core-3.8.0 #424

Merge pull request #383 from scala-steward/update/scalafmt-core-3.8.0

Merge pull request #383 from scala-steward/update/scalafmt-core-3.8.0 #424

Workflow file for this run

name: CI
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala: ["2.12.18", "2.13.12", "3.3.1"]
steps:
- uses: actions/checkout@v2
- uses: coursier/cache-action@v6
- uses: olafurpg/setup-scala@v11
with:
java-version: [email protected]
- run: sbt ++${{ matrix.scala }} clean scalafmtSbtCheck scalafmtCheck test doc
if: startsWith(matrix.scala, '3')
- run: sbt ++${{ matrix.scala }} clean scalafmtSbtCheck scalafmtCheck coverage test doc coverageReport coveralls
if: startsWith(matrix.scala, '2')
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [build]
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}