Skip to content

Commit 42a74c9

Browse files
Separate core reparse tests
1 parent 1aec2d4 commit 42a74c9

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/ci-pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,26 @@ jobs:
6161
- name: Test effekt binary
6262
run: effekt.sh --help
6363

64+
# These are currently separated as they take a long time to run.
65+
core-reparse-tests:
66+
name: "Core Reparse Tests"
67+
needs: build-and-compile
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v5
71+
with:
72+
submodules: 'true'
73+
74+
- uses: ./.github/actions/setup-effekt
75+
76+
- uses: ./.github/actions/restore-build-cache
77+
78+
- name: Run core reparse tests
79+
run: |
80+
sbt kiamaJVM/test
81+
sbt effektJVM/testRemaining
82+
sbt effektJS/test
83+
6484
windows-tests:
6585
name: "Windows Smoke Test"
6686
needs: build-and-compile

build.sbt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ lazy val bumpMinorVersion = taskKey[Unit]("Bumps the minor version number (used
1717
lazy val testBackendJS = taskKey[Unit]("Run JavaScript backend tests")
1818
lazy val testBackendChez = taskKey[Unit]("Run Chez Scheme backend tests")
1919
lazy val testBackendLLVM = taskKey[Unit]("Run LLVM backend tests")
20+
lazy val testCoreReparsing = taskKey[Unit]("Run core reparsing tests")
2021
lazy val testRemaining = taskKey[Unit]("Run all non-backend tests (internal tests) on effektJVM")
2122

2223
lazy val noPublishSettings = Seq(
@@ -230,6 +231,12 @@ lazy val effekt: CrossProject = crossProject(JSPlatform, JVMPlatform).in(file("e
230231
).value
231232
},
232233

234+
testCoreReparsing := {
235+
(Test / testOnly).toTask(
236+
" effekt.core.ReparseTests"
237+
).value
238+
},
239+
233240
testRemaining := Def.taskDyn {
234241
val log = streams.value.log
235242

@@ -245,7 +252,8 @@ lazy val effekt: CrossProject = crossProject(JSPlatform, JVMPlatform).in(file("e
245252
"effekt.StdlibChezSchemeCallCCTests",
246253
"effekt.LLVMTests",
247254
"effekt.LLVMNoValgrindTests",
248-
"effekt.StdlibLLVMTests"
255+
"effekt.StdlibLLVMTests",
256+
"effekt.core.ReparseTests",
249257
)
250258

251259
val remaining = allTests -- backendTests

0 commit comments

Comments
 (0)