Skip to content

Commit

Permalink
Run scripted tests in CI. (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
zainab-ali authored Aug 19, 2024
1 parent 3c1ccdd commit e2cdaf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ jobs:
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest'
run: sbt '++ ${{ matrix.scala }}' doc

- name: Scripted tests
run: sbt scripted

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: mkdir -p modules/plugin/target modules/weaver/target/jvm-2.13 modules/hashing/target/jvm-3 modules/munit/target/jvm-2.12 modules/scalatest/target/jvm-2.13 modules/weaver/target/js-3 modules/munit/target/js-2.12 modules/scalatest/target/js-2.12 modules/core/target/jvm-2.12 modules/hashing/target/js-3 modules/hashing/target/jvm-2.12 modules/core/target/jvm-3 modules/munit/target/jvm-3 modules/weaver/target/js-2.13 modules/hashing/target/js-2.13 modules/core/target/js-2.13 modules/hashing/target/jvm-2.13 modules/scalatest/target/jvm-3 modules/core/target/js-2.12 modules/weaver/target/jvm-3 modules/scalatest/target/jvm-2.12 modules/munit/target/js-3 modules/weaver/target/js-2.12 modules/weaver/target/jvm-2.12 modules/munit/target/jvm-2.13 modules/munit/target/js-2.13 modules/core/target/jvm-2.13 modules/hashing/target/js-2.12 modules/scalatest/target/js-3 modules/scalatest/target/js-2.13 modules/core/target/js-3 project/target
Expand Down
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ inThisBuild(
),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17")),
githubWorkflowPublishTargetBranches += RefPredicate.Equals(Ref.Branch("main")),
ThisBuild / githubWorkflowBuild += WorkflowStep
.Run(List("sbt scripted"), name = Some("Scripted tests")),
tlBaseVersion := "0.1",
tlUntaggedAreSnapshots := false,
tlFatalWarnings := sys.env.get("GITHUB_ACTIONS").contains("true"),
Expand Down

0 comments on commit e2cdaf9

Please sign in to comment.