Merge pull request #560 from scala-steward/update/sbt-scoverage-2.2.0 #487
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scala: ['2.12.18', '2.13.12', '3.3.1'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "[email protected]" | |
- name: Coursier cache | |
uses: coursier/cache-action@v5 | |
- name: Build and test | |
if: ${{ matrix.scala == '3.1.0' }} | |
run: sbt ++${{ matrix.scala }} clean test | |
- name: Build and test | |
if: ${{ matrix.scala != '3.1.0' }} | |
run: sbt ++${{ matrix.scala }} clean coverage test coverageReport && bash <(curl -s https://codecov.io/bash) |