Skip to content

Commit 25e1a03

Browse files
Merge pull request #4 from im-open/actions-maintenance
ARCH-1615 - Actions maintenance
2 parents edae3c8 + 4b5e8ba commit 25e1a03

File tree

7 files changed

+2791
-73
lines changed

7 files changed

+2791
-73
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ on:
55
# trigger because checkout, build, format and checking for changes do not need elevated
66
# permissions to the repository. The reduced permissions for public forks is adequate.
77
pull_request:
8-
paths-ignore:
9-
- '**.md'
8+
# Don't include any specific paths here so we always get a build that produces a status
9+
# check that our Branch Protection Rules can use. Having a status check also allows us
10+
# to require that branches be up to date before they are merged.
11+
1012
jobs:
1113
build:
1214
runs-on: ${{ matrix.operating-system }}
@@ -17,11 +19,11 @@ jobs:
1719

1820
steps:
1921
- name: Checkout
20-
uses: actions/checkout@v2
21-
- name: Setup Node.js 14
22-
uses: actions/setup-node@v1
22+
uses: actions/checkout@v3
23+
- name: Setup Node.js 16
24+
uses: actions/setup-node@v3
2325
with:
24-
node-version: 14.x
26+
node-version: 16.x
2527
- name: Build
2628
run: npm run build
2729
- name: Format

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ on:
1515
# reviewed, approved by a CODEOWNER and merged
1616
pull_request_target:
1717
types: [closed]
18+
paths:
19+
- 'dist/**'
20+
- 'src/**'
21+
- 'action.yml'
22+
- 'package.json'
23+
- 'package-lock.json'
1824

1925
jobs:
2026
increment-version:
@@ -28,7 +34,7 @@ jobs:
2834
# on a pull_request_target. But we need to be extra careful not to trigger any script
2935
# that may operate on PR controlled contents like in the case of npm install.
3036
- name: Checkout Repository
31-
uses: actions/checkout@v2
37+
uses: actions/checkout@v3
3238
with:
3339
ref: main
3440
fetch-depth: 0
@@ -37,7 +43,7 @@ jobs:
3743
# See https://github.com/im-open/git-version-lite for more details around how to increment
3844
# major/minor/patch through commit messages
3945
- name: Increment the version
40-
uses: im-open/git-version-lite@v2.0.6
46+
uses: im-open/git-version-lite@v2.1.1
4147
with:
4248
create-ref: true
4349
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This action does not generate the code coverage reports itself, those must be cr
4747
run: dotnet test ${{ env.SOLUTION }} --no-restore --logger trx --configuration Release /property:CollectCoverage=True /property:CoverletOutputFormat=opencover
4848

4949
- name: ReportGenerator
50-
uses: im-open/code-coverage-report-generator@4.8.14
50+
uses: im-open/code-coverage-report-generator@4.9.0
5151
with:
5252
reports: '*/**/coverage.opencover.xml'
5353
targetdir: ${{ env.CODE_COVERAGE_DIR }}'
@@ -71,7 +71,7 @@ This action does not generate the code coverage reports itself, those must be cr
7171
path: ${{ env.CODE_COVERAGE_DIR }}
7272

7373
- name: Create a PR comment from the summary file
74-
uses: im-open/process-code-coverage-summary@v2.0.2
74+
uses: im-open/process-code-coverage-summary@v2.2.0
7575
with:
7676
github-token: ${{ secrets.GITHUB_TOKEN }}
7777
summary-file: '${{ env.CODE_COVERAGE_DIR }}/Summary.md'

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ inputs:
5858
required: false
5959
default: ''
6060
runs:
61-
using: 'node12'
61+
using: 'node16'
6262
main: 'dist/index.js'
6363
branding:
6464
icon: 'bar-chart-2'

0 commit comments

Comments
 (0)