From 2b3ed547442db6de06eb68526c4c5441490d1e63 Mon Sep 17 00:00:00 2001 From: Michal Pawlik Date: Wed, 21 Aug 2024 23:02:39 +0200 Subject: [PATCH] compile before running tests --- .github/workflows/ci.yml | 2 +- build.sbt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba2e4b0a..6ddb6000 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: - name: Check that workflows are up to date run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck - - run: sbt '++ ${{ matrix.scala }}' test docs/mdoc mimaReportBinaryIssues + - run: sbt '++ ${{ matrix.scala }}' compile test docs/mdoc mimaReportBinaryIssues - name: Compress target directories run: tar cf targets.tar oauth2-jsoniter/jvm/target oauth2/js/target oauth2-cache/js/target oauth2-cache-ce2/target oauth2-cache-zio/target oauth2-jsoniter/js/target target oauth2-cache-scalacache/target mdoc/target oauth2-circe/jvm/target oauth2-cache-cats/target oauth2-cache-future/jvm/target oauth2-circe/js/target oauth2-cache/jvm/target oauth2-cache-future/js/target oauth2/jvm/target project/target diff --git a/build.sbt b/build.sbt index 97613048..be2a993b 100644 --- a/build.sbt +++ b/build.sbt @@ -29,7 +29,7 @@ ThisBuild / scalaVersion := Scala213 ThisBuild / crossScalaVersions := Seq(Scala212, Scala213, Scala3) ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.graalvm(Graalvm.Distribution("graalvm-community"), "17")) ThisBuild / githubWorkflowBuild := Seq( - WorkflowStep.Sbt(List("test", "docs/mdoc", "mimaReportBinaryIssues")) + WorkflowStep.Sbt(List("compile", "test", "docs/mdoc", "mimaReportBinaryIssues")) ) // NOTE those run separately for every ScalaVersion in `crossScalaVersions` //sbt-ci-release settings