Skip to content

ARCH-1615 - Actions maintenance #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ on:
# trigger because checkout, build, format and checking for changes do not need elevated
# permissions to the repository. The reduced permissions for public forks is adequate.
pull_request:
paths-ignore:
- '**.md'
# Don't include any specific paths here so we always get a build that produces a status
# check that our Branch Protection Rules can use. Having a status check also allows us
# to require that branches be up to date before they are merged.

jobs:
build:
runs-on: ${{ matrix.operating-system }}
Expand All @@ -17,11 +19,11 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js 14
uses: actions/setup-node@v1
uses: actions/checkout@v3
- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
- name: Build
run: npm run build
- name: Format
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/increment-version-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ on:
# reviewed, approved by a CODEOWNER and merged
pull_request_target:
types: [closed]
paths:
- 'dist/**'
- 'src/**'
- 'action.yml'
- 'package.json'
- 'package-lock.json'

jobs:
increment-version:
Expand All @@ -28,7 +34,7 @@ jobs:
# on a pull_request_target. But we need to be extra careful not to trigger any script
# that may operate on PR controlled contents like in the case of npm install.
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
Expand All @@ -37,7 +43,7 @@ jobs:
# See https://github.com/im-open/git-version-lite for more details around how to increment
# major/minor/patch through commit messages
- name: Increment the version
uses: im-open/git-version-lite@v2.0.6
uses: im-open/git-version-lite@v2.1.1
with:
create-ref: true
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This action does not generate the code coverage reports itself, those must be cr
run: dotnet test ${{ env.SOLUTION }} --no-restore --logger trx --configuration Release /property:CollectCoverage=True /property:CoverletOutputFormat=opencover

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

- name: Create a PR comment from the summary file
uses: im-open/process-code-coverage-summary@v2.0.2
uses: im-open/process-code-coverage-summary@v2.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
summary-file: '${{ env.CODE_COVERAGE_DIR }}/Summary.md'
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ inputs:
required: false
default: ''
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'bar-chart-2'
Expand Down
Loading