Skip to content

Cross-build for ScalaJS and Scala Native. #45

Cross-build for ScalaJS and Scala Native.

Cross-build for ScalaJS and Scala Native. #45

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Make sure to update build.sbt when updating this list
scala: [ 3.3.3, 2.13.14, 2.12.19 ]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "adopt@1.11"
- name: Run tests
run: sbt "++${{ matrix.scala }} test"
- name: Run coverage (JVM only)
run: sbt coverage "++${{ matrix.scala }}; root/test"
- name: Upload coverage data to Coveralls
run: sbt ++${{ matrix.scala }} coverageAggregate coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}