4
4
push :
5
5
branches-ignore :
6
6
- ' language-reference-stable'
7
+ tags :
8
+ - ' **'
7
9
pull_request :
8
10
branches-ignore :
9
11
- ' language-reference-stable'
@@ -57,20 +59,25 @@ jobs:
57
59
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
58
60
59
61
- name : Checkout cleanup script
60
- uses : actions/checkout@v2
62
+ uses : actions/checkout@v3
61
63
62
64
- name : Cleanup
63
65
run : .github/workflows/cleanup.sh
64
66
65
67
- name : Git Checkout
66
- uses : actions/checkout@v2
68
+ uses : actions/checkout@v3
67
69
68
70
- name : Add SBT proxy repositories
69
71
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
70
72
71
73
- name : Test
74
+ # DON'T add dist/pack!
75
+ # Adding dist/pack bootstraps the compiler
76
+ # which undermines the point of these tests:
77
+ # to quickly run the tests without the cost of bootstrapping
78
+ # and also to run tests when the compiler doesn't bootstrap
72
79
run : |
73
- ./project/scripts/sbt ";dist/pack; compile ;test"
80
+ ./project/scripts/sbt ";compile ;test"
74
81
./project/scripts/cmdTests
75
82
76
83
test :
@@ -102,23 +109,27 @@ jobs:
102
109
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
103
110
104
111
- name : Checkout cleanup script
105
- uses : actions/checkout@v2
112
+ uses : actions/checkout@v3
106
113
107
114
- name : Cleanup
108
115
run : .github/workflows/cleanup.sh
109
116
110
117
- name : Git Checkout
111
- uses : actions/checkout@v2
118
+ uses : actions/checkout@v3
112
119
113
120
- name : Add SBT proxy repositories
114
121
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
115
122
116
123
- name : Cmd Tests
117
124
run : |
118
- ./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
125
+ ./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
119
126
./project/scripts/cmdTests
120
127
./project/scripts/bootstrappedOnlyCmdTests
121
128
129
+ - name : Scala.js Test
130
+ run : |
131
+ ./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
132
+
122
133
test_windows_fast :
123
134
runs-on : [self-hosted, Windows]
124
135
if : " (
@@ -137,7 +148,7 @@ jobs:
137
148
shell : cmd
138
149
139
150
- name : Git Checkout
140
- uses : actions/checkout@v2
151
+ uses : actions/checkout@v3
141
152
142
153
- name : Test
143
154
run : sbt ";scala3-bootstrapped/compile"
@@ -160,7 +171,7 @@ jobs:
160
171
shell : cmd
161
172
162
173
- name : Scala.js Test
163
- run : sbt ";sjsJUnitTests/test ;sjsCompilerTests/test"
174
+ run : sbt ";sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ; sjsCompilerTests/test"
164
175
shell : cmd
165
176
166
177
test_windows_full :
@@ -179,14 +190,14 @@ jobs:
179
190
shell : cmd
180
191
181
192
- name : Git Checkout
182
- uses : actions/checkout@v2
193
+ uses : actions/checkout@v3
183
194
184
195
- name : Test
185
196
run : sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test"
186
197
shell : cmd
187
198
188
199
- name : Scala.js Test
189
- run : sbt ";sjsJUnitTests/test ;sjsCompilerTests/test"
200
+ run : sbt ";sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ; sjsCompilerTests/test"
190
201
shell : cmd
191
202
192
203
mima :
@@ -215,13 +226,13 @@ jobs:
215
226
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
216
227
217
228
- name : Checkout cleanup script
218
- uses : actions/checkout@v2
229
+ uses : actions/checkout@v3
219
230
220
231
- name : Cleanup
221
232
run : .github/workflows/cleanup.sh
222
233
223
234
- name : Git Checkout
224
- uses : actions/checkout@v2
235
+ uses : actions/checkout@v3
225
236
226
237
- name : Add SBT proxy repositories
227
238
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -256,13 +267,13 @@ jobs:
256
267
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
257
268
258
269
- name : Checkout cleanup script
259
- uses : actions/checkout@v2
270
+ uses : actions/checkout@v3
260
271
261
272
- name : Cleanup
262
273
run : .github/workflows/cleanup.sh
263
274
264
275
- name : Git Checkout
265
- uses : actions/checkout@v2
276
+ uses : actions/checkout@v3
266
277
267
278
- name : Add SBT proxy repositories
268
279
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -303,13 +314,13 @@ jobs:
303
314
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
304
315
305
316
- name : Checkout cleanup script
306
- uses : actions/checkout@v2
317
+ uses : actions/checkout@v3
307
318
308
319
- name : Cleanup
309
320
run : .github/workflows/cleanup.sh
310
321
311
322
- name : Git Checkout
312
- uses : actions/checkout@v2
323
+ uses : actions/checkout@v3
313
324
314
325
- name : Add SBT proxy repositories
315
326
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -350,13 +361,13 @@ jobs:
350
361
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
351
362
352
363
- name : Checkout cleanup script
353
- uses : actions/checkout@v2
364
+ uses : actions/checkout@v3
354
365
355
366
- name : Cleanup
356
367
run : .github/workflows/cleanup.sh
357
368
358
369
- name : Git Checkout
359
- uses : actions/checkout@v2
370
+ uses : actions/checkout@v3
360
371
361
372
- name : Add SBT proxy repositories
362
373
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -397,13 +408,13 @@ jobs:
397
408
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
398
409
399
410
- name : Checkout cleanup script
400
- uses : actions/checkout@v2
411
+ uses : actions/checkout@v3
401
412
402
413
- name : Cleanup
403
414
run : .github/workflows/cleanup.sh
404
415
405
416
- name : Git Checkout
406
- uses : actions/checkout@v2
417
+ uses : actions/checkout@v3
407
418
408
419
- name : Add SBT proxy repositories
409
420
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -444,23 +455,27 @@ jobs:
444
455
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
445
456
446
457
- name : Checkout cleanup script
447
- uses : actions/checkout@v2
458
+ uses : actions/checkout@v3
448
459
449
460
- name : Cleanup
450
461
run : .github/workflows/cleanup.sh
451
462
452
463
- name : Git Checkout
453
- uses : actions/checkout@v2
464
+ uses : actions/checkout@v3
454
465
455
466
- name : Add SBT proxy repositories
456
467
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
457
468
458
469
- name : Test
459
470
run : |
460
- ./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
471
+ ./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
461
472
./project/scripts/cmdTests
462
473
./project/scripts/bootstrappedOnlyCmdTests
463
474
475
+ - name : Scala.js Test
476
+ run : |
477
+ ./project/scripts/sbt ";sjsSandbox/run ;sjsSandbox/test ;sjsJUnitTests/test ;set sjsJUnitTests/scalaJSLinkerConfig ~= switchToESModules ;sjsJUnitTests/test ;sjsCompilerTests/test"
478
+
464
479
publish_nightly :
465
480
runs-on : [self-hosted, Linux]
466
481
container :
@@ -484,13 +499,13 @@ jobs:
484
499
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
485
500
486
501
- name : Checkout cleanup script
487
- uses : actions/checkout@v2
502
+ uses : actions/checkout@v3
488
503
489
504
- name : Cleanup
490
505
run : .github/workflows/cleanup.sh
491
506
492
507
- name : Git Checkout
493
- uses : actions/checkout@v2
508
+ uses : actions/checkout@v3
494
509
495
510
- name : Add SBT proxy repositories
496
511
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -538,13 +553,13 @@ jobs:
538
553
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
539
554
540
555
- name : Checkout cleanup script
541
- uses : actions/checkout@v2
556
+ uses : actions/checkout@v3
542
557
543
558
- name : Cleanup
544
559
run : .github/workflows/cleanup.sh
545
560
546
561
- name : Git Checkout
547
- uses : actions/checkout@v2
562
+ uses : actions/checkout@v3
548
563
549
564
- name : Add SBT proxy repositories
550
565
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -580,13 +595,13 @@ jobs:
580
595
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
581
596
582
597
- name : Checkout cleanup script
583
- uses : actions/checkout@v2
598
+ uses : actions/checkout@v3
584
599
585
600
- name : Cleanup
586
601
run : .github/workflows/cleanup.sh
587
602
588
603
- name : Git Checkout
589
- uses : actions/checkout@v2
604
+ uses : actions/checkout@v3
590
605
591
606
- name : Add SBT proxy repositories
592
607
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -601,6 +616,8 @@ jobs:
601
616
run : .github/workflows/scripts/triggerUnmanagedCommunityBuild.sh "${{ secrets.BUILD_TOKEN }}" "$THISBUILD_VERSION"
602
617
603
618
publish_release :
619
+ permissions :
620
+ contents : write # for actions/create-release to create a release
604
621
runs-on : [self-hosted, Linux]
605
622
container :
606
623
image : lampepfl/dotty:2021-03-22
@@ -625,13 +642,13 @@ jobs:
625
642
run : git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
626
643
627
644
- name : Checkout cleanup script
628
- uses : actions/checkout@v2
645
+ uses : actions/checkout@v3
629
646
630
647
- name : Cleanup
631
648
run : .github/workflows/cleanup.sh
632
649
633
650
- name : Git Checkout
634
- uses : actions/checkout@v2
651
+ uses : actions/checkout@v3
635
652
636
653
- name : Add SBT proxy repositories
637
654
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -698,7 +715,7 @@ jobs:
698
715
if : " failure() && github.event_name == 'schedule'"
699
716
steps :
700
717
- name : Checkout issue template
701
- uses : actions/checkout@v2
718
+ uses : actions/checkout@v3
702
719
703
720
- name : Open an issue
704
721
uses : JasonEtco/create-an-issue@v2
0 commit comments