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