image: openjdk:11 variables: MILL_CLI: "-D coursier.cache=$CI_PROJECT_DIR/.cache -j 0" cache: paths: - .cache/ test: script: - ./mill $MILL_CLI mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources - ./mill $MILL_CLI server.test package: script: - ./mill $MILL_CLI server.assembly artifacts: paths: - out/server/assembly.dest/*.jar when: on_success expire_in: never rules: - if: $CI_COMMIT_TAG