Update sbt to 1.9.3 #626
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: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: [[email protected]] | |
scala: ['2.12', '2.13', '3'] | |
include: | |
- scala: '2.12' | |
scala-version: 2.12.18 | |
- scala: '2.13' | |
scala-version: 2.13.11 | |
- scala: '3' | |
scala-version: 3.3.0 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Scala | |
uses: olafurpg/setup-scala@v13 | |
with: | |
java-version: ${{ matrix.jdk }} | |
- name: Setup Tor | |
uses: tor-actions/[email protected] | |
- name: Check formatting | |
run: sbt "++${{ matrix.scala-version }} scalafmtCheckAll" scalafmtSbtCheck | |
- name: Compile | |
run: sbt "++${{ matrix.scala-version }} compile" | |
- name: Run tests | |
run: > | |
if [[ "${{ matrix.scala }}" =~ ^2\..* ]]; then | |
sbt coverage "++${{ matrix.scala-version }} test"; | |
else | |
sbt "++${{ matrix.scala-version }} test"; | |
fi | |
- name: Upload coverage data to Coveralls | |
if: startsWith(matrix.scala, '2') | |
run: sbt ++${{ matrix.scala-version }} coverageAggregate coveralls | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala-version }} | |
- name: Check mdoc output | |
if: matrix.scala == '2.12' | |
run: > | |
sbt ++${{ matrix.scala-version }} mdoc && | |
git diff --exit-code |