Skip to content

Commit

Permalink
Update coreJVMTests
Browse files Browse the repository at this point in the history
  • Loading branch information
cchantep committed Sep 5, 2022
1 parent 201247d commit d7d07ac
Show file tree
Hide file tree
Showing 9 changed files with 472 additions and 395 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ jobs:
- java: 11
scala: 2.11.12
- java: 11
scala: 2.12.14
scala: 2.12.16
- java: 11
scala: 2.13.6
scala: 2.13.8
- java: 11
scala: 3.2.1-RC1
runs-on: ubuntu-latest
env:
SCALAJS_TEST_OPT: full
# define Java options for both official sbt and sbt-extras
JAVA_OPTS: -Xms6G -Xmx6G -Xss4M -XX:ReservedCodeCacheSize=256M -XX:MaxMetaspaceSize=1G -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8
JVM_OPTS: -Xms6G -Xmx6G -Xss4M -XX:ReservedCodeCacheSize=256M -XX:MaxMetaspaceSize=1G -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8
SBT_OPTS: -Denumeratum.useLocalVersion
steps:
- name: Checkout
uses: actions/checkout@v1
Expand All @@ -39,26 +42,23 @@ jobs:
sbt -v ++${{ matrix.scala }} scalafmtCheck scalafmtSbtCheck scala_2_11/test:compile scala_2_11/test:doc
sbt -v ++${{ matrix.scala }} scala_2_11/test
;;
2.12.14)
2.12.16)
sbt -v ++${{ matrix.scala }} test:compile test:doc
sbt -v ++${{ matrix.scala }} coverage test coverageReport
sbt -v ++${{ matrix.scala }} coverageAggregate
;;
2.13.6)
*)
sbt -v ++${{ matrix.scala }} test:compile test:doc
sbt -v ++${{ matrix.scala }} test
;;
*)
echo unknown Scala Version ${{ matrix.scala }}
exit 1
esac
rm -rf "$HOME/.ivy2/local" || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true
- name: Upload coverage to Codecov
if: ${{ matrix.scala == '2.12.14' }}
if: ${{ matrix.scala == '2.12.16' }}
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
Loading

0 comments on commit d7d07ac

Please sign in to comment.