@@ -142,9 +142,51 @@ jobs:
142
142
run : |
143
143
./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
144
144
145
- - name : Test with Scala 2 library TASTy
145
+ - name : Test with Scala 2 library TASTy (fast)
146
146
run : ./project/scripts/sbt ";set ThisBuild/Build.useScala2LibraryTasty := true ;scala3-bootstrapped/testCompilation i5" # only test a subset of test to avoid doubling the CI execution time
147
147
148
+ test_scala2_library_tasty :
149
+ runs-on : [self-hosted, Linux]
150
+ container :
151
+ image : lampepfl/dotty:2021-03-22
152
+ options : --cpu-shares 4096
153
+ volumes :
154
+ - ${{ github.workspace }}/../../cache/sbt:/root/.sbt
155
+ - ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
156
+ - ${{ github.workspace }}/../../cache/general:/root/.cache
157
+ if : " github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
158
+ || (
159
+ github.event_name == 'pull_request'
160
+ && contains(github.event.pull_request.body, '[test_scala2_library_tasty]')
161
+ )
162
+ || (
163
+ github.event_name == 'workflow_dispatch'
164
+ && github.repository == 'lampepfl/dotty'
165
+ )"
166
+
167
+ steps :
168
+ - name : Set JDK 16 as default
169
+ run : echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH
170
+
171
+ - name : Reset existing repo
172
+ run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
173
+
174
+ - name : Checkout cleanup script
175
+ uses : actions/checkout@v3
176
+
177
+ - name : Cleanup
178
+ run : .github/workflows/cleanup.sh
179
+
180
+ - name : Git Checkout
181
+ uses : actions/checkout@v3
182
+
183
+ - name : Add SBT proxy repositories
184
+ run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
185
+
186
+ - name : Test with Scala 2 library TASTy
187
+ run : ./project/scripts/sbt ";set ThisBuild/Build.useScala2LibraryTasty := true ;scala3-bootstrapped/testCompilation"
188
+
189
+
148
190
test_windows_fast :
149
191
runs-on : [self-hosted, Windows]
150
192
if : " (
0 commit comments