Skip to content

Commit 3ad08c5

Browse files
committed
Make Windows CI faster
1 parent 377ce48 commit 3ad08c5

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-dotty/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
9090
./project/scripts/bootstrapCmdTests
9191
92-
test_windows:
92+
test_windows_fast:
9393
runs-on: [self-hosted, Windows]
9494
if: "github.event_name == 'schedule'
9595
|| (
@@ -99,7 +99,30 @@ jobs:
9999
|| (
100100
github.event_name == 'pull_request'
101101
&& !contains(github.event.pull_request.body, '[skip ci]')
102-
&& !contains(github.event.pull_request.body, '[skip test_windows]')
102+
)"
103+
104+
steps:
105+
- name: Git Checkout
106+
uses: actions/checkout@v2
107+
108+
- name: Test
109+
run: sbt ";scala3-bootstrapped/compile"
110+
shell: cmd
111+
112+
- name: Scala.js Test
113+
run: sbt ";sjsJUnitTests/test ;sjsCompilerTests/test"
114+
shell: cmd
115+
116+
test_windows_full:
117+
runs-on: [self-hosted, Windows]
118+
if: "github.event_name == 'schedule'
119+
|| (
120+
github.event_name == 'push'
121+
&& !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
122+
)
123+
|| (
124+
github.event_name == 'push'
125+
&& github.ref == 'master'
103126
)"
104127

105128
steps:

0 commit comments

Comments
 (0)