Skip to content

Add Scala 3 to code coverage #1378

Add Scala 3 to code coverage

Add Scala 3 to code coverage #1378

Workflow file for this run

name: ci-tests

Check failure on line 1 in .github/workflows/ci-tests.yml

View workflow run for this annotation

GitHub Actions / ci-tests

Invalid workflow file

The workflow is not valid. .github/workflows/ci-tests.yml: (Line: 39, Col: 13, Idx: 868) - (Line: 39, Col: 14, Idx: 869): While parsing a tag, did not find expected tag URI.
on:
pull_request:
push:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
unit-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Scala
uses: olafurpg/setup-scala@v14
with:
java-version: "[email protected]"
- name: Build and Unit Tests
run: sbt -v -Dfile.encoding=UTF-8 +clean +test
coverage:
name: Code Coverage
strategy:
matrix:
scala: [2.12.19, 2.13.14, 3.3.3]
subproject: [core, bigquery, jsoncirce, cassandra, spark]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Scala
uses: olafurpg/setup-scala@v14
with:
java-version: "[email protected]"
- name: Coverage for Scala
if: ! ( matrix.scala == '3.3.3' && matrix.subproject == 'spark' )
run: sbt ++${{ matrix.scala }} "project ${{ matrix.subproject}}" clean coverage test
- name: Coverage Report
run: sbt ++${{ matrix.scala }} coverageReport
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false # optional (default = false)
flags: unittests