Skip to content

Commit 9daa761

Browse files
committed
Make Windows CI faster
1 parent 377ce48 commit 9daa761

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 1 deletion
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
|| (
@@ -102,6 +102,32 @@ jobs:
102102
&& !contains(github.event.pull_request.body, '[skip test_windows]')
103103
)"
104104

105+
steps:
106+
- name: Git Checkout
107+
uses: actions/checkout@v2
108+
109+
- name: Test
110+
run: sbt ";scala3-bootstrapped/compile"
111+
shell: cmd
112+
113+
- name: Scala.js Test
114+
run: sbt ";sjsJUnitTests/test ;sjsCompilerTests/test"
115+
shell: cmd
116+
117+
test_windows_full:
118+
runs-on: [self-hosted, Windows]
119+
if: "github.event_name == 'schedule'
120+
|| (
121+
github.event_name == 'push'
122+
&& !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
123+
)
124+
|| (
125+
github.event_name == 'pull_request'
126+
&& !contains(github.event.pull_request.body, '[skip ci]')
127+
&& !contains(github.event.pull_request.body, '[skip test_windows]')
128+
&& github.event.pull_request.merged == true
129+
)"
130+
105131
steps:
106132
- name: Git Checkout
107133
uses: actions/checkout@v2

0 commit comments

Comments
 (0)