Cross-build for ScalaJS and Scala Native. #43
Workflow file for this run
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: | |
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: "[email protected]" | |
- 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 }} coverageReport coveralls | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }} |