Update sbt-assembly to 2.1.4 #1229
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-tests | |
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.15, 2.13.12] | |
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 2 (until Scala 3 is available) | |
run: sbt ++${{ matrix.scala }} 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 |