Skip to content

Commit c3f38de

Browse files
committed
Update to node24
+semver:major
1 parent e2984f8 commit c3f38de

14 files changed

Lines changed: 30810 additions & 16468 deletions

.github/workflows/build-and-review-pr.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ env:
2626
COVERAGE_SUMMARY_INPUT_FILE: './test/input-files/coverage-summary.md'
2727
TRUNCATE_SUMMARY_INPUT_FILE: './test/input-files/truncate.md'
2828

29+
permissions:
30+
contents: write
31+
pull-requests: write
32+
2933
jobs:
3034
build-and-review-pr:
3135
# This reusable workflow will check to see if an action's source code has changed based on
@@ -39,7 +43,7 @@ jobs:
3943
# This workflow assumes:
4044
# - The main README.md is at the root of the repo
4145
# - The README contains a contribution guidelines and usage examples section
42-
uses: im-open/.github/.github/workflows/reusable-build-and-review-pr.yml@v1
46+
uses: im-open/.github/.github/workflows/reusable-build-and-review-pr.yml@v2
4347
with:
4448
action-name: ${{ github.repository }}
4549
default-branch: main
@@ -82,7 +86,7 @@ jobs:
8286
run: echo ""
8387

8488
- name: Setup - Checkout the action
85-
uses: actions/checkout@v4
89+
uses: actions/checkout@v7
8690

8791
- name: '-------------------------------------------------------------------------------------------------------------'
8892
run: echo ""
@@ -493,7 +497,7 @@ jobs:
493497
fi
494498
495499
- name: Setup - Checkout the action
496-
uses: actions/checkout@v4
500+
uses: actions/checkout@v7
497501

498502
- name: '-------------------------------------------------------------------------------------------------------------'
499503
run: echo ""
@@ -529,7 +533,7 @@ jobs:
529533

530534
- name: 10e - And the status check should match the inputs
531535
if: always()
532-
uses: actions/github-script@v7
536+
uses: actions/github-script@v9
533537
with:
534538
script: |
535539
const fs = require('fs');
@@ -583,7 +587,7 @@ jobs:
583587

584588
- name: 11e - And the status check should match the inputs
585589
if: always()
586-
uses: actions/github-script@v7
590+
uses: actions/github-script@v9
587591
with:
588592
script: |
589593
const fs = require('fs');
@@ -637,7 +641,7 @@ jobs:
637641

638642
- name: 12e - And the status check should match the inputs
639643
if: always()
640-
uses: actions/github-script@v7
644+
uses: actions/github-script@v9
641645
with:
642646
script: |
643647
const fs = require('fs');
@@ -691,7 +695,7 @@ jobs:
691695

692696
- name: 13e - And the status check should match the inputs
693697
if: always()
694-
uses: actions/github-script@v7
698+
uses: actions/github-script@v9
695699
with:
696700
script: |
697701
const fs = require('fs');
@@ -718,7 +722,7 @@ jobs:
718722

719723
- name: Teardown - Modify failing Status Check conclusion
720724
if: always()
721-
uses: actions/github-script@v7
725+
uses: actions/github-script@v9
722726
with:
723727
script: |
724728
const fs = require('fs');
@@ -760,19 +764,19 @@ jobs:
760764
fi
761765
762766
- name: Setup - Checkout the action
763-
uses: actions/checkout@v4
767+
uses: actions/checkout@v7
764768

765769
- name: Setup - Delete pre-existing process-code-coverage-summary PR Comments
766770
if: always()
767-
uses: actions/github-script@v7
771+
uses: actions/github-script@v9
768772
with:
769773
script: |
770774
const deletePrComments = require('./test/delete-pre-existing-comments.js');
771775
await deletePrComments(github, context, core);
772776
773777
- name: Setup - Create a process-code-coverage-summary comment that can be updated
774778
if: always()
775-
uses: actions/github-script@v7
779+
uses: actions/github-script@v9
776780
with:
777781
script: |
778782
await github.rest.issues.createComment({
@@ -825,7 +829,7 @@ jobs:
825829

826830
- name: 14e - And the pr-comment should match the match the expected values
827831
if: always()
828-
uses: actions/github-script@v7
832+
uses: actions/github-script@v9
829833
with:
830834
script: |
831835
const fs = require('fs');
@@ -881,7 +885,7 @@ jobs:
881885

882886
- name: 15e - And the pr-comment should match the expected values
883887
if: always()
884-
uses: actions/github-script@v7
888+
uses: actions/github-script@v9
885889
with:
886890
script: |
887891
const fs = require('fs');
@@ -937,7 +941,7 @@ jobs:
937941

938942
- name: 16e - And the pr-comment should match the expected values
939943
if: always()
940-
uses: actions/github-script@v7
944+
uses: actions/github-script@v9
941945
with:
942946
script: |
943947
const fs = require('fs');
@@ -993,7 +997,7 @@ jobs:
993997

994998
- name: 17e - And the pr-comment should match the expected values
995999
if: always()
996-
uses: actions/github-script@v7
1000+
uses: actions/github-script@v9
9971001
with:
9981002
script: |
9991003
const fs = require('fs');
@@ -1024,7 +1028,7 @@ jobs:
10241028

10251029
- name: Teardown - Delete PR Comments
10261030
if: always()
1027-
uses: actions/github-script@v7
1031+
uses: actions/github-script@v9
10281032
with:
10291033
script: |
10301034
const fs = require('fs');

.github/workflows/increment-version-on-merge.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ on:
2929
# if this action should be incremented and if new tags should be pushed to the repo based
3030
# on the same criteria used in the build-and-review-pr.yml workflow.
3131

32+
permissions:
33+
contents: write
34+
3235
jobs:
3336
increment-version:
34-
uses: im-open/.github/.github/workflows/reusable-increment-version-on-merge.yml@v1
37+
uses: im-open/.github/.github/workflows/reusable-increment-version-on-merge.yml@v2
3538
with:
3639
default-branch: main
3740

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ jobs:
113113
runs-on: [ubuntu-20.04]
114114

115115
steps:
116-
- uses: actions/checkout@v4
116+
- uses: actions/checkout@v7
117117

118118
# dotnet tests
119119
- name: Setup .NET Core
120-
uses: actions/setup-dotnet@v4
120+
uses: actions/setup-dotnet@v5
121121
with:
122122
dotnet-version: ${{ env.DOTNET_VERSION }}
123123

@@ -126,7 +126,7 @@ jobs:
126126
run: dotnet test './src/MyProj.sln' --logger trx --configuration Release /property:CollectCoverage=True /property:CoverletOutputFormat=opencover
127127

128128
- name: ReportGenerator
129-
uses: im-open/code-coverage-report-generator@4
129+
uses: im-open/code-coverage-report-generator@5
130130
with:
131131
reports: '*/**/coverage.opencover.xml'
132132
targetdir: './coverage-results'
@@ -137,7 +137,7 @@ jobs:
137137
- name: Create a status check for the code coverage results
138138
id: dotnet-coverage-check
139139
# You may also reference just the major or major.minor version
140-
uses: im-open/process-code-coverage-summary@v2.3.1
140+
uses: im-open/process-code-coverage-summary@v3.0.0
141141
with:
142142
github-token: ${{ secrets.GITHUB_TOKEN }}
143143
summary-file: './coverage-results/dotnet-summary.md'
@@ -158,15 +158,15 @@ jobs:
158158
run: npm run test -- --outputFile=jest-results.json
159159

160160
- name: create code coverage report
161-
uses: im-open/code-coverage-report-generator@4
161+
uses: im-open/code-coverage-report-generator@5
162162
with:
163163
reports: '*/**/lcov.info'
164164
targetdir: ./tests
165165
title: jest code coverage
166166

167167
- name: create status check/comment for code coverage results
168168
id: jest_coverage_check
169-
uses: im-open/process-code-coverage-summary@v2.3.1
169+
uses: im-open/process-code-coverage-summary@v3.0.0
170170
with:
171171
github-token: ${{ secrets.GITHUB_TOKEN }}
172172
summary-file: './coverage-results/jest-summary.md'

0 commit comments

Comments
 (0)