@@ -141,6 +141,8 @@ jobs:
141
141
- run : bundle exec rake github:run_batch_build
142
142
- run : ln -s .rspec-local.example .rspec-local
143
143
- run : bundle exec rake github:run_batch_tests
144
+ env :
145
+ COVERAGE_DIR : coverage/versions/ruby-34/${{ matrix.batch }}
144
146
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
145
147
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
146
148
with :
@@ -152,6 +154,11 @@ jobs:
152
154
with :
153
155
name : junit-ruby-34-${{ matrix.batch }}-${{ github.run_id }}
154
156
path : tmp/rspec/*.xml
157
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
158
+ with :
159
+ name : coverage-ruby-34-${{ matrix.batch }}-${{ github.run_id }}
160
+ path : coverage
161
+ include-hidden-files : true
155
162
batch-ruby-33 :
156
163
runs-on : ubuntu-24.04
157
164
name : batch (ruby-3.3)
@@ -278,6 +285,8 @@ jobs:
278
285
- run : bundle exec rake github:run_batch_build
279
286
- run : ln -s .rspec-local.example .rspec-local
280
287
- run : bundle exec rake github:run_batch_tests
288
+ env :
289
+ COVERAGE_DIR : coverage/versions/ruby-33/${{ matrix.batch }}
281
290
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
282
291
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
283
292
with :
@@ -289,6 +298,11 @@ jobs:
289
298
with :
290
299
name : junit-ruby-33-${{ matrix.batch }}-${{ github.run_id }}
291
300
path : tmp/rspec/*.xml
301
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
302
+ with :
303
+ name : coverage-ruby-33-${{ matrix.batch }}-${{ github.run_id }}
304
+ path : coverage
305
+ include-hidden-files : true
292
306
batch-ruby-32 :
293
307
runs-on : ubuntu-24.04
294
308
name : batch (ruby-3.2)
@@ -415,6 +429,8 @@ jobs:
415
429
- run : bundle exec rake github:run_batch_build
416
430
- run : ln -s .rspec-local.example .rspec-local
417
431
- run : bundle exec rake github:run_batch_tests
432
+ env :
433
+ COVERAGE_DIR : coverage/versions/ruby-32/${{ matrix.batch }}
418
434
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
419
435
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
420
436
with :
@@ -426,6 +442,11 @@ jobs:
426
442
with :
427
443
name : junit-ruby-32-${{ matrix.batch }}-${{ github.run_id }}
428
444
path : tmp/rspec/*.xml
445
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
446
+ with :
447
+ name : coverage-ruby-32-${{ matrix.batch }}-${{ github.run_id }}
448
+ path : coverage
449
+ include-hidden-files : true
429
450
batch-ruby-31 :
430
451
runs-on : ubuntu-24.04
431
452
name : batch (ruby-3.1)
@@ -552,6 +573,8 @@ jobs:
552
573
- run : bundle exec rake github:run_batch_build
553
574
- run : ln -s .rspec-local.example .rspec-local
554
575
- run : bundle exec rake github:run_batch_tests
576
+ env :
577
+ COVERAGE_DIR : coverage/versions/ruby-31/${{ matrix.batch }}
555
578
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
556
579
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
557
580
with :
@@ -563,6 +586,11 @@ jobs:
563
586
with :
564
587
name : junit-ruby-31-${{ matrix.batch }}-${{ github.run_id }}
565
588
path : tmp/rspec/*.xml
589
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
590
+ with :
591
+ name : coverage-ruby-31-${{ matrix.batch }}-${{ github.run_id }}
592
+ path : coverage
593
+ include-hidden-files : true
566
594
batch-ruby-30 :
567
595
runs-on : ubuntu-24.04
568
596
name : batch (ruby-3.0)
@@ -689,6 +717,8 @@ jobs:
689
717
- run : bundle exec rake github:run_batch_build
690
718
- run : ln -s .rspec-local.example .rspec-local
691
719
- run : bundle exec rake github:run_batch_tests
720
+ env :
721
+ COVERAGE_DIR : coverage/versions/ruby-30/${{ matrix.batch }}
692
722
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
693
723
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
694
724
with :
@@ -700,6 +730,11 @@ jobs:
700
730
with :
701
731
name : junit-ruby-30-${{ matrix.batch }}-${{ github.run_id }}
702
732
path : tmp/rspec/*.xml
733
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
734
+ with :
735
+ name : coverage-ruby-30-${{ matrix.batch }}-${{ github.run_id }}
736
+ path : coverage
737
+ include-hidden-files : true
703
738
batch-ruby-27 :
704
739
runs-on : ubuntu-24.04
705
740
name : batch (ruby-2.7)
@@ -826,6 +861,8 @@ jobs:
826
861
- run : bundle exec rake github:run_batch_build
827
862
- run : ln -s .rspec-local.example .rspec-local
828
863
- run : bundle exec rake github:run_batch_tests
864
+ env :
865
+ COVERAGE_DIR : coverage/versions/ruby-27/${{ matrix.batch }}
829
866
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
830
867
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
831
868
with :
@@ -837,6 +874,11 @@ jobs:
837
874
with :
838
875
name : junit-ruby-27-${{ matrix.batch }}-${{ github.run_id }}
839
876
path : tmp/rspec/*.xml
877
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
878
+ with :
879
+ name : coverage-ruby-27-${{ matrix.batch }}-${{ github.run_id }}
880
+ path : coverage
881
+ include-hidden-files : true
840
882
batch-ruby-26 :
841
883
runs-on : ubuntu-24.04
842
884
name : batch (ruby-2.6)
@@ -963,6 +1005,8 @@ jobs:
963
1005
- run : bundle exec rake github:run_batch_build
964
1006
- run : ln -s .rspec-local.example .rspec-local
965
1007
- run : bundle exec rake github:run_batch_tests
1008
+ env :
1009
+ COVERAGE_DIR : coverage/versions/ruby-26/${{ matrix.batch }}
966
1010
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
967
1011
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
968
1012
with :
@@ -974,6 +1018,11 @@ jobs:
974
1018
with :
975
1019
name : junit-ruby-26-${{ matrix.batch }}-${{ github.run_id }}
976
1020
path : tmp/rspec/*.xml
1021
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
1022
+ with :
1023
+ name : coverage-ruby-26-${{ matrix.batch }}-${{ github.run_id }}
1024
+ path : coverage
1025
+ include-hidden-files : true
977
1026
batch-ruby-25 :
978
1027
runs-on : ubuntu-24.04
979
1028
name : batch (ruby-2.5)
@@ -1100,6 +1149,8 @@ jobs:
1100
1149
- run : bundle exec rake github:run_batch_build
1101
1150
- run : ln -s .rspec-local.example .rspec-local
1102
1151
- run : bundle exec rake github:run_batch_tests
1152
+ env :
1153
+ COVERAGE_DIR : coverage/versions/ruby-25/${{ matrix.batch }}
1103
1154
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
1104
1155
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
1105
1156
with :
@@ -1111,6 +1162,11 @@ jobs:
1111
1162
with :
1112
1163
name : junit-ruby-25-${{ matrix.batch }}-${{ github.run_id }}
1113
1164
path : tmp/rspec/*.xml
1165
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
1166
+ with :
1167
+ name : coverage-ruby-25-${{ matrix.batch }}-${{ github.run_id }}
1168
+ path : coverage
1169
+ include-hidden-files : true
1114
1170
batch-jruby-94 :
1115
1171
runs-on : ubuntu-24.04
1116
1172
name : batch (jruby-9.4)
@@ -1237,6 +1293,8 @@ jobs:
1237
1293
- run : bundle exec rake github:run_batch_build
1238
1294
- run : ln -s .rspec-local.example .rspec-local
1239
1295
- run : bundle exec rake github:run_batch_tests
1296
+ env :
1297
+ COVERAGE_DIR : coverage/versions/jruby-94/${{ matrix.batch }}
1240
1298
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
1241
1299
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
1242
1300
with :
@@ -1248,6 +1306,11 @@ jobs:
1248
1306
with :
1249
1307
name : junit-jruby-94-${{ matrix.batch }}-${{ github.run_id }}
1250
1308
path : tmp/rspec/*.xml
1309
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
1310
+ with :
1311
+ name : coverage-jruby-94-${{ matrix.batch }}-${{ github.run_id }}
1312
+ path : coverage
1313
+ include-hidden-files : true
1251
1314
batch-jruby-93 :
1252
1315
runs-on : ubuntu-24.04
1253
1316
name : batch (jruby-9.3)
@@ -1374,6 +1437,8 @@ jobs:
1374
1437
- run : bundle exec rake github:run_batch_build
1375
1438
- run : ln -s .rspec-local.example .rspec-local
1376
1439
- run : bundle exec rake github:run_batch_tests
1440
+ env :
1441
+ COVERAGE_DIR : coverage/versions/jruby-93/${{ matrix.batch }}
1377
1442
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
1378
1443
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
1379
1444
with :
@@ -1385,6 +1450,11 @@ jobs:
1385
1450
with :
1386
1451
name : junit-jruby-93-${{ matrix.batch }}-${{ github.run_id }}
1387
1452
path : tmp/rspec/*.xml
1453
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
1454
+ with :
1455
+ name : coverage-jruby-93-${{ matrix.batch }}-${{ github.run_id }}
1456
+ path : coverage
1457
+ include-hidden-files : true
1388
1458
batch-jruby-92 :
1389
1459
runs-on : ubuntu-24.04
1390
1460
name : batch (jruby-9.2)
@@ -1511,6 +1581,8 @@ jobs:
1511
1581
- run : bundle exec rake github:run_batch_build
1512
1582
- run : ln -s .rspec-local.example .rspec-local
1513
1583
- run : bundle exec rake github:run_batch_tests
1584
+ env :
1585
+ COVERAGE_DIR : coverage/versions/jruby-92/${{ matrix.batch }}
1514
1586
- if : " ${{ failure() && env.RUNNER_DEBUG == '1' }}"
1515
1587
uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48
1516
1588
with :
@@ -1522,6 +1594,11 @@ jobs:
1522
1594
with :
1523
1595
name : junit-jruby-92-${{ matrix.batch }}-${{ github.run_id }}
1524
1596
path : tmp/rspec/*.xml
1597
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
1598
+ with :
1599
+ name : coverage-jruby-92-${{ matrix.batch }}-${{ github.run_id }}
1600
+ path : coverage
1601
+ include-hidden-files : true
1525
1602
complete :
1526
1603
name : complete
1527
1604
runs-on : ubuntu-24.04
@@ -1574,3 +1651,42 @@ jobs:
1574
1651
merge-multiple : true
1575
1652
- run : sed -i 's;file="./;file=";g' tmp/rspec/*.xml
1576
1653
- run : datadog-ci junit upload --verbose --dry-run tmp/rspec/
1654
+ coverage :
1655
+ name : upload/coverage
1656
+ runs-on : ubuntu-24.04
1657
+ needs :
1658
+ - build-test-ruby-34
1659
+ - build-test-ruby-33
1660
+ - build-test-ruby-32
1661
+ - build-test-ruby-31
1662
+ - build-test-ruby-30
1663
+ - build-test-ruby-27
1664
+ - build-test-ruby-26
1665
+ - build-test-ruby-25
1666
+ - build-test-jruby-94
1667
+ - build-test-jruby-93
1668
+ - build-test-jruby-92
1669
+ - batch-ruby-34
1670
+ container :
1671
+ image : ghcr.io/datadog/images-rb/engines/ruby:3.4
1672
+ steps :
1673
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1674
+ - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
1675
+ with :
1676
+ name : lockfile-ruby-34-${{ github.run_id }}
1677
+ - uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57
1678
+ id : restore-cache
1679
+ with :
1680
+ key : " ${{ needs.batch-ruby-34.outputs.cache-key }}"
1681
+ path : " /usr/local/bundle"
1682
+ - run : bundle check || bundle install
1683
+ - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
1684
+ with :
1685
+ path : coverage
1686
+ pattern : coverage-*
1687
+ merge-multiple : true
1688
+ - run : bundle exec rake coverage:report
1689
+ - uses : codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3
1690
+ with :
1691
+ verbose : true
1692
+ files : coverage/report/coverage.xml
0 commit comments