forked from apache/netbeans
-
Notifications
You must be signed in to change notification settings - Fork 0
2762 lines (2087 loc) · 82.6 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: NetBeans
on:
push:
branches:
- 'master'
- 'delivery'
- 'release*'
pull_request:
# unlocked event is used as super secret restart button
types: [opened, synchronize, unlocked]
# Allows you to run this workflow manually from the Actions tab in GitHub UI
# keep in mind this will have ALL tests enabled
workflow_dispatch:
# cancel other PR workflow run in the same head-base group if it exists (e.g. during PR syncs)
# if this is not a PR run (no github.head_ref and github.base_ref defined), use an UID as group
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.base_ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
# note to self: don't remove the minus again
OPTS: >-
-Dtest-unit-sys-prop.ignore.random.failures=true
# what to build and test, see nbbuild/cluster.properties
CLUSTER_CONFIG: 'full'
# flags for conditional, long running steps or jobs configurable with labels. If this is not a PR, everything will run.
# 'Java' label
test_java: ${{ contains(github.event.pull_request.labels.*.name, 'Java') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'JavaDoc' or 'API Change' labels
test_javadoc: ${{ contains(github.event.pull_request.labels.*.name, 'JavaDoc') || contains(github.event.pull_request.labels.*.name, 'API Change') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'JavaScript' label
test_javascript: ${{ contains(github.event.pull_request.labels.*.name, 'JavaScript') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'PHP' label
test_php: ${{ contains(github.event.pull_request.labels.*.name, 'PHP') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'Groovy' label
test_groovy: ${{ contains(github.event.pull_request.labels.*.name, 'Groovy') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'Rust' label
test_rust: ${{ contains(github.event.pull_request.labels.*.name, 'Rust') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'Platform' label
test_platform: ${{ contains(github.event.pull_request.labels.*.name, 'Platform') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'tests' label for building all tests
test_tests: ${{ contains(github.event.pull_request.labels.*.name, 'tests') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'LSP' label for enabling Language Server Protocol tests
test_lsp: ${{ contains(github.event.pull_request.labels.*.name, 'LSP') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'GraalVM' label for tests requirering GraalVM
test_graalvm: ${{ contains(github.event.pull_request.labels.*.name, 'GraalVM') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'VSCode Extension' label for building and testing the VSCode Extension
test_vscode_extension: ${{ contains(github.event.pull_request.labels.*.name, 'VSCode Extension') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
# 'Ant', 'Gradle', 'Maven' and 'MX' labels trigger build-tools job
# see job condition (env vars don't work for job conditions https://github.com/actions/runner/issues/1189 )
# special commands:
# 'ci:all-tests' enables everything
# 'ci:no-build' disables the build job (and test jobs too)
# 'ci:dev-build' produces an artifact containing a runnable NetBeans zip distribution
# default java distribution used by the setup-java action
# see https://github.com/actions/setup-java#supported-distributions
default_java_distribution: 'zulu'
jobs:
# primary build job, most other jobs use the artifact produced here
# artifact is only produced once in the matrix
base-build:
name: Build Clusters on JDK ${{ matrix.java }}
if: contains(github.event.pull_request.labels.*.name, 'ci:no-build') == false
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17', '21', '22-ea' ]
fail-fast: false
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: false
show-progress: false
- name: Caching dependencies
uses: actions/cache@v4
with:
path: ~/.hgexternalcache
key: ${{ runner.os }}-${{ hashFiles('*/external/binaries-list', '*/*/external/binaries-list') }}
restore-keys: ${{ runner.os }}-
- name: Build NetBeans
run: ant $OPTS -quiet -Dcluster.config=$CLUSTER_CONFIG build-nozip
- name: Prepare Artifact
if: ${{ matrix.java == '17' }}
run: tar -I 'zstd -9 -T0' -cf /tmp/build.tar.zst --exclude ".git" .
- name: Upload Workspace
if: ${{ (matrix.java == '17') && success() }}
uses: actions/upload-artifact@v4
with:
name: build
path: /tmp/build.tar.zst
compression-level: 0
retention-days: 2
if-no-files-found: error
- name: Create Dev Build
if: ${{ matrix.java == '17' && contains(github.event.pull_request.labels.*.name, 'ci:dev-build') && success() }}
run: ant $OPTS -quiet -Dcluster.config=$CLUSTER_CONFIG zip-cluster-config
- name: Upload Dev Build
if: ${{ matrix.java == '17' && contains(github.event.pull_request.labels.*.name, 'ci:dev-build') && success() }}
uses: actions/upload-artifact@v4
with:
name: dev-build
path: nbbuild/NetBeans-*.zip
compression-level: 0
retention-days: 7
if-no-files-found: error
nb-javac-smokecheck:
name: "NetBeans on nb-javac"
# Run test job only when the 'nb-javac' label is added
if: ${{ contains(github.event.pull_request.labels.*.name, 'nb-javac') }}
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: false
show-progress: false
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: ${{ env.default_java_distribution }}
java-version: 17
- name: Caching dependencies
uses: actions/cache/restore@v4
with:
path: ~/.hgexternalcache
key: ${{ runner.os }}-${{ hashFiles('*/external/binaries-list', '*/*/external/binaries-list') }}
restore-keys: ${{ runner.os }}-
- name: Download External Binaries
run: ant $OPTS download-all-extbins
- name: Build NetBeans with nb-javac
run: ant $OPTS build -Dnbjavac.class.path=java/libs.javacapi/external/*.jar
- name: Setup Xvfb
run: |
echo "DISPLAY=:99.0" >> $GITHUB_ENV
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Test with Commit Validation
run: ant $OPTS commit-validation -Dnbjavac.class.path=java/libs.javacapi/external/*.jar
# secondary jobs
commit-validation:
name: CV on ${{ matrix.os }}/JDK ${{ matrix.java }}
needs: base-build
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java: [ 17 ]
include:
- os: ubuntu-latest
java: 21
fail-fast: false
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Setup Xvfb
if: contains(matrix.os, 'ubuntu') && success()
run: |
echo "DISPLAY=:99.0" >> $GITHUB_ENV
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Download Build
uses: actions/download-artifact@v4
with:
name: build
# tar on MacOS is not aware of zstd "tar --zstd -xf build.tar.zst" doesn't work
- name: Extract on MacOS
if: contains(matrix.os, 'macos') && success()
run: unzstd -c build.tar.zst | tar -x
- name: Extract on Linux/Windows
if: contains(matrix.os, 'macos') == false && success()
run: tar --zstd -xf build.tar.zst
- name: platform/masterfs.macosx
if: contains(matrix.os, 'macos') && success()
run: ant $OPTS -f platform/masterfs.macosx test
- name: Commit Validation tests
run: .github/retry.sh ant $OPTS -Dcluster.config=$CLUSTER_CONFIG commit-validation
- name: Set up JDK 11 for core.network
uses: actions/setup-java@v4
if: matrix.java == 17 && success()
with:
java-version: 11
distribution: ${{ env.default_java_distribution }}
# fails on 17+
- name: platform/core.network
if: matrix.java == 17 && success()
run: ant $OPTS -f platform/core.network test
- name: Create Test Summary
uses: test-summary/action@v2
if: failure()
with:
paths: |
./*/*/build/test/*/results/TEST-*.xml
./nbbuild/build/test/commit-validation/results/TEST-*.xml
# commit related checks - some steps run even when the build is dissabled
paperwork:
name: Check Paperwork on Linux/JDK ${{ matrix.java }}
needs: base-build
if: always()
runs-on: ubuntu-latest
timeout-minutes: 60
env:
ANT_OPTS: -Dmetabuild.jsonurl=https://raw.githubusercontent.com/apache/netbeans-jenkins-lib/master/meta/netbeansrelease.json
strategy:
matrix:
java: [ '17' ]
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
if: ${{ !cancelled() }}
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: false
show-progress: false
fetch-depth: 10
- name: Print last 10 Commits
if: ${{ github.event_name == 'pull_request' && !cancelled() }}
run: git log --oneline -n10 --pretty=format:'%h %an [%ae] %s'
- name: Check line endings and verify RAT report
if: ${{ !cancelled() }}
run: |
nbbuild/travis/check-line-endings.sh
ant $OPTS -quiet build-source-config
mkdir scratch && cd scratch
unzip -qq ../nbbuild/build/release-src*
ant $OPTS -quiet rat -Drat-report.haltonfailure=true
- name: Clean Workspace
if: ${{ !cancelled() }}
run: cd ..; rm -Rf netbeans; mkdir netbeans
- name: Download Build
if: ${{ needs.base-build.result == 'success' && !cancelled() }}
uses: actions/download-artifact@v4
with:
name: build
- name: Extract
if: ${{ needs.base-build.result == 'success' && !cancelled() }}
run: tar --zstd -xf build.tar.zst
- name: Verify libs and licenses
if: ${{ needs.base-build.result == 'success' && !cancelled() }}
run: ant $OPTS verify-libs-and-licenses -Dverify-libs-and-licenses.haltonfailure=true
- name: Run check-sigtests-release
if: ${{ needs.base-build.result == 'success' && !cancelled() }}
run: ant $OPTS -quiet check-sigtests-release -Dfail.on.error=true
- name: Run gen-sigtests-release
if: ${{ needs.base-build.result == 'success' && !cancelled() }}
run: ant $OPTS -quiet gen-sigtests-release
build-system-test:
name: Build-System Test on Linux/JDK ${{ matrix.java }}
needs: base-build
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17' ]
fail-fast: false
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Download Build
uses: actions/download-artifact@v4
with:
name: build
- name: Extract
run: tar --zstd -xf build.tar.zst
- name: Test Netbeans Build System
run: ant $OPTS -Dcluster.config=$CLUSTER_CONFIG localtest
- name: Build all Tests
# runs only in PRs if requested, nowhere else (~18 min)
if: env.test_tests == 'true' && github.event_name == 'pull_request' && success()
run: ant -quiet -Dcluster.config=$CLUSTER_CONFIG test -Dtest.includes=NoTestsJustBuild
build-nbms:
name: Build NBMs and Javadoc on JDK ${{ matrix.java }}
needs: base-build
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17' ]
fail-fast: false
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Download Build
uses: actions/download-artifact@v4
with:
name: build
- name: Extract
run: tar --zstd -xf build.tar.zst
- name: Build nbms
run: ant $OPTS build-nbms
- name: Build javadoc
if: env.test_javadoc == 'true' && success()
run: ant $OPTS build-javadoc
build-from-src-zip:
name: Build ${{ matrix.config }} from src.zip on JDK ${{ matrix.java }}
# equals env.test_platform == 'true' || test_vscode_extension == 'true'
if: ${{ contains(github.event.pull_request.labels.*.name, 'Platform') || contains(github.event.pull_request.labels.*.name, 'VSCode Extension') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
needs: base-build
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17' ]
config: [ 'platform', 'release' ]
fail-fast: false
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Download Build
uses: actions/download-artifact@v4
with:
name: build
- name: Extract
run: tar --zstd -xf build.tar.zst
- name: Restoring Cache
uses: actions/cache/restore@v4
with:
path: ~/.hgexternalcache
key: ${{ runner.os }}-${{ hashFiles('*/external/binaries-list', '*/*/external/binaries-list') }}
restore-keys: ${{ runner.os }}-
- name: Create ${{ matrix.config }}-src zip
run: ant $OPTS -quiet build-source-config -Dcluster.config=${{ matrix.config }}
- name: Extract ${{ matrix.config }}-src zip
run: |
mkdir tmpbuild && cd tmpbuild
unzip -qq ../nbbuild/build/${{ matrix.config }}-src*
- name: Build from ${{ matrix.config }}-src zip
run: |
cd tmpbuild
ant $OPTS -quiet build -Dcluster.config=${{ matrix.config }}
# extra round for VSCodeExt which is built with 'release' config
- name: Set up node
if: ${{ (matrix.config == 'release') && success() }}
uses: actions/setup-node@v4
with:
node-version: 18
- name: Build NBVSCodeExt from ${{ matrix.config }}-src zip
if: ${{ (matrix.config == 'release') && success() }}
run: |
cd tmpbuild/java/java.lsp.server
ant $OPTS build-vscode-ext -D3rdparty.modules=.*externalcodeformatter.*
ide-modules-test:
name: IDE Modules on Linux/JDK ${{ matrix.java }}
needs: base-build
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17' ]
fail-fast: false
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Setup Xvfb
run: |
echo "DISPLAY=:99.0" >> $GITHUB_ENV
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Download Build
uses: actions/download-artifact@v4
with:
name: build
- name: Extract
run: tar --zstd -xf build.tar.zst
- name: ide/api.xml
run: ant $OPTS -f ide/api.xml test
- name: ide/api.xml.ui
run: ant $OPTS -f ide/api.xml.ui test
- name: ide/bugtracking
run: .github/retry.sh ant $OPTS -f ide/bugtracking test
- name: ide/bugtracking.bridge
run: .github/retry.sh ant $OPTS -f ide/bugtracking.bridge test
- name: ide/bugtracking.commons
run: ant $OPTS -f ide/bugtracking.commons test
# - name: ide/bugzilla
# run: ant $OPTS -f ide/bugzilla test
- name: ide/code.analysis
run: ant $OPTS -f ide/code.analysis test
- name: ide/core.ide
run: ant $OPTS -f ide/core.ide test
- name: ide/csl.api
run: ant $OPTS -f ide/csl.api test
- name: ide/csl.types
run: ant $OPTS -f ide/csl.types test
- name: ide/css.editor
run: ant $OPTS -f ide/css.editor test
- name: ide/css.lib
run: ant $OPTS -f ide/css.lib test
- name: ide/css.model
run: ant $OPTS -f ide/css.model test
- name: ide/db
run: .github/retry.sh ant $OPTS -f ide/db test
- name: ide/db.dataview
run: ant $OPTS -f ide/db.dataview test
- name: ide/db.sql.editor
run: ant $OPTS -f ide/db.sql.editor test
- name: ide/docker.api
run: ant $OPTS -f ide/docker.api test
- name: ide/docker.ui
run: ant $OPTS -f ide/docker.ui test
- name: ide/editor.bookmarks
run: ant $OPTS -f ide/editor.bookmarks test
# - name: ide/editor.bracesmatching
# run: ant $OPTS -f ide/editor.bracesmatching test
- name: ide/editor.document
run: ant $OPTS -f ide/editor.document test
- name: ide/editor.fold
run: ant $OPTS -f ide/editor.fold test
- name: ide/editor.fold.nbui
run: ant $OPTS -f ide/editor.fold.nbui test
- name: ide/editor.guards
run: ant $OPTS -f ide/editor.guards test
- name: ide/editor.indent
run: ant $OPTS -f ide/editor.indent test
- name: ide/editor.indent.project
run: ant $OPTS -f ide/editor.indent.project test
- name: ide/editor.macros
run: ant $OPTS -f ide/editor.macros test
- name: ide/editor.search
run: ant $OPTS -f ide/editor.search test
- name: ide/editor.settings
run: ant $OPTS -f ide/editor.settings test
- name: ide/editor.settings.storage
run: .github/retry.sh ant $OPTS -f ide/editor.settings.storage test
- name: ide/editor.structure
run: ant $OPTS -f ide/editor.structure test
- name: ide/editor.tools.storage
run: ant $OPTS -f ide/editor.tools.storage test
- name: ide/editor.util
run: ant $OPTS -f ide/editor.util test
- name: ide/extbrowser
run: ant $OPTS -f ide/extbrowser test
- name: ide/extexecution.base
run: ant $OPTS -f ide/extexecution.base test
- name: ide/gsf.testrunner.ui
run: ant $OPTS -f ide/gsf.testrunner.ui test
- name: ide/html
run: .github/retry.sh ant $OPTS -f ide/html test
- name: ide/html.custom
run: ant $OPTS -f ide/html.custom test
- name: ide/html.editor
run: ant $OPTS -f ide/html.editor test
- name: ide/html.editor
run: ant $OPTS -f ide/html.editor.lib test
- name: ide/html.lexer
run: ant $OPTS -f ide/html.lexer test
- name: ide/html.parser
run: ant $OPTS -f ide/html.parser test
- name: ide/html.validation
run: ant $OPTS -f ide/html.validation test
- name: ide/httpserver
run: ant $OPTS -f ide/httpserver test
- name: ide/hudson
run: ant $OPTS -f ide/hudson test
- name: ide/hudson.git
run: ant $OPTS -f ide/hudson.git test
- name: ide/hudson.mercurial
run: ant $OPTS -f ide/hudson.mercurial test
- name: ide/hudson.subversion
run: ant $OPTS -f ide/hudson.subversion test
- name: ide/hudson.tasklist
run: ant $OPTS -f ide/hudson.tasklist test
- name: ide/hudson.ui
run: ant $OPTS -f ide/hudson.ui test
- name: ide/javascript2.debug
run: ant $OPTS -f ide/javascript2.debug test
- name: ide/languages.hcl
run: ant $OPTS -f ide/languages.hcl test
- name: ide/languages.toml
run: ant $OPTS -f ide/languages.toml test
- name: ide/languages.yaml
run: ant $OPTS -f ide/languages.yaml test
- name: ide/lexer
run: ant $OPTS -f ide/lexer test
- name: ide/lexer.antlr4
run: ant $OPTS -f ide/lexer.antlr4 test
- name: ide/lib.terminalemulator
run: ant $OPTS -f ide/lib.terminalemulator test
- name: ide/libs.freemarker
run: ant $OPTS -f ide/libs.freemarker test
- name: ide/libs.git
run: .github/retry.sh ant $OPTS -f ide/libs.git test
- name: ide/libs.graalsdk
run: ant $OPTS -f ide/libs.graalsdk test
# - name: ide/localhistory
# run: ant $OPTS -f ide/localhistory test
- name: ide/libs.truffleapi
run: ant $OPTS -f ide/libs.truffleapi test
- name: ide/lsp.client
run: ant $OPTS -f ide/lsp.client test
- name: ide/notifications
run: .github/retry.sh ant $OPTS -f ide/notifications test
- name: ide/o.openidex.util
run: ant $OPTS -f ide/o.openidex.util test
- name: ide/options.editor
run: .github/retry.sh ant $OPTS -f ide/options.editor test
# - name: ide/parsing.api
# run: ant $OPTS -f ide/parsing.api test
# - name: ide/parsing.indexing
# run: ant $OPTS -f ide/parsing.indexing test
- name: ide/parsing.lucene
run: ant $OPTS -f ide/parsing.lucene test
- name: ide/project.libraries
run: ant $OPTS -f ide/project.libraries test
- name: ide/project.libraries.ui
run: ant $OPTS -f ide/project.libraries.ui test
- name: ide/projectapi
run: ant $OPTS -f ide/projectapi test
- name: ide/projectapi.nb
run: ant $OPTS -f ide/projectapi.nb test
- name: ide/projectuiapi.base
run: ant $OPTS -f ide/projectuiapi.base test
- name: ide/refactoring.api
run: ant $OPTS -f ide/refactoring.api test
- name: ide/schema2beans
run: ant $OPTS -f ide/schema2beans test
- name: ide/server
run: ant $OPTS -f ide/server test
- name: ide/spellchecker
run: ant $OPTS -f ide/spellchecker test
- name: ide/spi.editor.hints
run: ant $OPTS -f ide/spi.editor.hints test
# - name: ide/spi.palette
# run: ant $OPTS -f ide/spi.palette test
- name: ide/spi.tasklist
run: ant $OPTS -f ide/spi.tasklist test
- name: ide/tasklist.ui
run: ant $OPTS -f ide/tasklist.ui test
- name: ide/team.commons
run: ant $OPTS -f ide/team.commons test
- name: ide/terminal.nb
run: ant $OPTS -f ide/terminal.nb test
- name: ide/utilities
run: ant $OPTS -f ide/utilities test
- name: ide/versioning.masterfs
run: ant $OPTS -f ide/versioning.masterfs test
- name: ide/versioning.ui
run: ant $OPTS -f ide/versioning.ui test
- name: ide/versioning.util
run: ant $OPTS -f ide/versioning.util test
- name: ide/web.common
run: ant $OPTS -f ide/web.common test
- name: ide/web.common.ui
run: ant $OPTS -f ide/web.common.ui test
- name: ide/web.webkit.debugging
run: ant $OPTS -f ide/web.webkit.debugging test
- name: ide/xml
run: ant $OPTS -f ide/xml test
- name: ide/xml.axi
run: ant $OPTS -f ide/xml.axi test
- name: ide/xml.catalog
run: ant $OPTS -f ide/xml.catalog test-unit
- name: ide/xml.core
run: ant $OPTS -f ide/xml.core test
- name: ide/xml.lexer
run: ant $OPTS -f ide/xml.lexer test
- name: ide/xml.multiview
run: ant $OPTS -f ide/xml.multiview test
- name: ide/xml.retriever
run: ant $OPTS -f ide/xml.retriever test
- name: ide/xml.schema.completion
run: ant $OPTS -f ide/xml.schema.completion test
- name: ide/xml.schema.model
run: ant $OPTS -f ide/xml.schema.model test
- name: ide/xml.text
run: ant $OPTS -f ide/xml.text test
- name: ide/xml.text.obsolete90
run: ant $OPTS -f ide/xml.text.obsolete90 test
- name: ide/xml.wsdl.model
run: .github/retry.sh ant $OPTS -f ide/xml.wsdl.model test
- name: ide/xml.xam
run: ant $OPTS -f ide/xml.xam test
- name: ide/xml.xdm
run: ant $OPTS -f ide/xml.xdm test
- name: ide/xsl
run: ant $OPTS -f ide/xsl test
- name: Create Test Summary
uses: test-summary/action@v2
if: failure()
with:
paths: "./*/*/build/test/*/results/TEST-*.xml"
build-tools:
name: Build-Tools on Linux/JDK ${{ matrix.java }}
# label triggers: Ant, Gradle, Maven, MX
if: ${{ contains(github.event.pull_request.labels.*.name, 'Ant') || contains(github.event.pull_request.labels.*.name, 'Gradle') || contains(github.event.pull_request.labels.*.name, 'Maven') || contains(github.event.pull_request.labels.*.name, 'MX') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
needs: base-build
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17', '21', '22-ea' ]
exclude:
- java: ${{ github.event_name == 'pull_request' && 'nothing' || '21' }}
fail-fast: false
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Setup Xvfb
run: |
echo "DISPLAY=:99.0" >> $GITHUB_ENV
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Download Build
uses: actions/download-artifact@v4
with:
name: build
- name: Extract
run: tar --zstd -xf build.tar.zst
- name: java/maven
run: ant $OPTS -f java/maven test
- name: java/maven.embedder
run: ant $OPTS -f java/maven.embedder test
- name: java/maven.grammar
run: ant $OPTS -f java/maven.grammar test
- name: java/maven.hints
run: ant $OPTS -f java/maven.hints test
# - name: java/maven.htmlui
# run: ant $OPTS -f java/maven.htmlui test
- name: java/maven.indexer
run: ant $OPTS -f java/maven.indexer test
- name: java/maven.refactoring
run: ant $OPTS -f java/maven.refactoring test
- name: java/maven.junit
run: ant $OPTS -f java/maven.junit test
- name: java/maven.model
run: ant $OPTS -f java/maven.model test
- name: java/maven.osgi
run: ant $OPTS -f java/maven.osgi test
- name: java/api.maven
run: ant $OPTS -f java/api.maven test
- name: maven.apisupport
run: ant $OPTS -f apisupport/maven.apisupport test
- name: java/hudson.maven
run: ant $OPTS -f java/hudson.maven test
- name: ide/project.ant
run: ant $OPTS -f ide/project.ant test
- name: ide/project.ant.compat8
run: ant $OPTS -f ide/project.ant.compat8 test
- name: ide/project.ant.ui
run: ant $OPTS -f ide/project.ant.ui test
# - name: java/ant.debugger
# run: ant $OPTS -f java/ant.debugger test
- name: java/ant.freeform
run: ant $OPTS -f java/ant.freeform test
# - name: java/ant.grammar
# run: ant $OPTS -f java/ant.grammar test
- name: Set up JDK 17 for JDK 21 incompatible tests
if: ${{ matrix.java == '21' }}
uses: actions/setup-java@v4
with:
java-version: 17
distribution: ${{ env.default_java_distribution }}
- name: java/java.mx.project
if: ${{ matrix.java == '17' }}
run: .github/retry.sh ant $OPTS -f java/java.mx.project test
- name: java/gradle.java
if: ${{ matrix.java == '17' }}
run: .github/retry.sh ant $OPTS -f java/gradle.java test
- name: extide/gradle
if: ${{ matrix.java == '17' }}
run: ant $OPTS -f extide/gradle test
- name: java/gradle.dependencies
if: ${{ matrix.java == '17' }}
run: ant $OPTS -f java/gradle.dependencies test
- name: extide/o.apache.tools.ant.module
if: ${{ matrix.java == '17' }}
run: ant $OPTS -f extide/o.apache.tools.ant.module test
- name: Create Test Summary
uses: test-summary/action@v2
if: failure()
with:
paths: "./*/*/build/test/*/results/TEST-*.xml"
platform-modules-test1:
name: Platform Modules batch1 on Linux/JDK ${{ matrix.java }} (some on 8)
# equals env.test_platform == 'true'
if: ${{ contains(github.event.pull_request.labels.*.name, 'Platform') || contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || github.event_name != 'pull_request' }}
needs: base-build
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [ '17' ]
fail-fast: false
steps:
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.default_java_distribution }}
- name: Setup Xvfb
run: |
echo "DISPLAY=:99.0" >> $GITHUB_ENV
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Download Build
uses: actions/download-artifact@v4
with:
name: build
- name: Extract
run: tar --zstd -xf build.tar.zst
- name: platform/api.htmlui
run: .github/retry.sh ant $OPTS -f platform/api.htmlui test
- name: platform/htmlui
run: .github/retry.sh ant $OPTS -f platform/htmlui test
- name: platform/api.intent
run: ant $OPTS -f platform/api.intent test
- name: platform/api.io
run: ant $OPTS -f platform/api.io test
- name: platform/api.progress
run: ant $OPTS -f platform/api.progress test
- name: platform/api.progress.nb
run: ant $OPTS -f platform/api.progress.nb test
- name: platform/api.scripting