Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,17 @@ jobs:
coverage:
name: Code Coverage
strategy:
fail-fast: false
matrix:
scala: [2.12.20, 2.13.18]
scala: [2.12.20, 2.13.18, 3.3.3]
subproject: [core, bigquery, jsonCirce, cassandra, spark, examples]
exclude:
# Spark is not released for Scala 3.
- scala: 3.3.3
subproject: spark
# Examples only cross-build for Scala 2.
- scala: 3.3.3
subproject: examples
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -34,13 +43,16 @@ jobs:
uses: olafurpg/setup-scala@v14
with:
java-version: "adopt@1.8"
- name: Coverage for Scala 2 (until Scala 3 is available)
run: sbt ++${{ matrix.scala }} clean coverage test
- name: Coverage for Scala
run: sbt ++${{ matrix.scala }} "project ${{ matrix.subproject }}" clean coverage test
- name: Coverage Report
run: sbt ++${{ matrix.scala }} coverageReport
run: sbt ++${{ matrix.scala }} "project ${{ matrix.subproject }}" coverageReport
- name: Codecov
# NOTE: uploads stay tokenless until CODECOV_TOKEN is configured
# in the repo secrets. Do NOT bump to codecov-action v4/v5
# (token required) before that, and do NOT move the upload to a
# separate job without passing the coverage files as artifacts.
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false # optional (default = false)
flags: unittests
Loading