Skip to content

Commit

Permalink
📦 ci: fix sbt commands to run only for the scala version given as arg…
Browse files Browse the repository at this point in the history
…ument
  • Loading branch information
gaeljw committed Nov 5, 2023
1 parent d3ba542 commit abb956f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
run: |
case ${{ matrix.scala }} in
2.12.18)
sbt -v ++${{ matrix.scala }} scalafmtCheck scalafmtSbtCheck test:compile test:doc
sbt -v ++${{ matrix.scala }} coverage test coverageReport
sbt -v ++${{ matrix.scala }} coverageAggregate
sbt -v "++${{ matrix.scala }} scalafmtCheck" "++${{ matrix.scala }} scalafmtSbtCheck" "++${{ matrix.scala }} test:compile" "++${{ matrix.scala }} test:doc"
sbt -v "++${{ matrix.scala }} coverage" "++${{ matrix.scala }} test" "++${{ matrix.scala }} coverageReport"
sbt -v "++${{ matrix.scala }} coverageAggregate"
;;
*)
sbt -v ++${{ matrix.scala }} test:compile test:doc
sbt -v ++${{ matrix.scala }} test
sbt -v "++${{ matrix.scala }} test:compile" "++${{ matrix.scala }} test:doc"
sbt -v "++${{ matrix.scala }} test"
;;
esac
rm -rf "$HOME/.ivy2/local" || true
Expand Down

0 comments on commit abb956f

Please sign in to comment.