Skip to content
Open
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
20 changes: 10 additions & 10 deletions .github/workflows/ModuleCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
name: Run Linters
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
# Validates CHANGELOG.md against the Keep a Changelog format. Level and depth are
# fails: the action also enforces a SemVer rule that a patch release may contain
# only Fixed and Security sections, and existing psake module histories violate
Expand All @@ -57,7 +57,7 @@ jobs:
validation_level: ${{ inputs.changelog_validation_level }}
validation_depth: ${{ inputs.changelog_validation_depth }}
path: ./CHANGELOG.md
- uses: streetsidesoftware/cspell-action@v6
- uses: streetsidesoftware/cspell-action@v9
with:
strict: false
suggestions: true
Expand All @@ -66,7 +66,7 @@ jobs:
name: Apply PSScriptAnalyzer Fixes
run: Invoke-ScriptAnalyzer . -Fix
- name: PSScriptAnalyzer Fixes
uses: reviewdog/action-suggester@v1.21.0
uses: reviewdog/action-suggester@v1.24.3
with:
tool_name: "PSScriptAnalyzer"
test:
Expand All @@ -78,21 +78,21 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Test
shell: pwsh
run: ./build.ps1 -Task Test -Bootstrap
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: Unit Test Results (OS ${{ matrix.os }})
path: ./tests/out/testResults.xml
- name: Upload Code Coverage Results
# Skipped when the build produced no coverage report, so a module that does
# not measure coverage is not failed for it.
if: always() && hashFiles(inputs.code_coverage_report_path) != ''
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: Code Coverage Results (OS ${{ matrix.os }})
path: ${{ inputs.code_coverage_report_path }}
Expand Down Expand Up @@ -135,21 +135,21 @@ jobs:
# test cleanly on the lowest supported engine, not just PowerShell 7+.
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Test
shell: powershell
run: ./build.ps1 -Task Test -Bootstrap
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: Unit Test Results (Windows PowerShell 5.1)
path: ./tests/out/testResults.xml
- name: Upload Code Coverage Results
# Skipped when the build produced no coverage report, so a module that does
# not measure coverage is not failed for it.
if: always() && hashFiles(inputs.code_coverage_report_path) != ''
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: Code Coverage Results (Windows PowerShell 5.1)
path: ${{ inputs.code_coverage_report_path }}
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
if: ${{ !cancelled() }}
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
# Restricted to the test result artifacts. The test jobs also upload code
# coverage reports, and the publisher below would try to read those as test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/PublishModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
module_name: ${{ steps.check_if_versions_bumped.outputs.MODULE_NAME }}
new_version: ${{ steps.check_if_versions_bumped.outputs.NEW_VERSION }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Check if version is already published
id: check_if_versions_bumped
shell: pwsh
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
needs:
- check_version
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Read and validate changelog (keepachangelog)
id: changelog
uses: mindsers/changelog-reader-action@v2
Expand All @@ -120,7 +120,7 @@ jobs:
version: ${{ needs.check_version.outputs.new_version }}
path: ./CHANGELOG.md
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ needs.check_version.outputs.new_version }}
name: Release ${{ steps.changelog.outputs.version }}
Expand All @@ -135,7 +135,7 @@ jobs:
- check_version
if: needs.check_version.outputs.version_bumped == 'True'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Publish to PSGallery
shell: pwsh
env:
Expand Down