Skip to content

Commit 06bb3d0

Browse files
🩹 [Patch]: Bump Process-PSModule to v5 (#11)
## Description This pull request updates the repository's GitHub workflow configuration by consolidating and modernizing CI/CD workflows, cleaning up linter and code duplication settings, and improving dependency management automation. The main focus is on streamlining the process for running tests, nightly jobs, and dependency updates, while removing redundant or outdated configurations. **Workflow and CI/CD improvements:** * Updated `.github/workflows/Process-PSModule.yml` to combine nightly and pull request triggers, add workflow dispatch, and update the referenced reusable workflow to version `v5` for better maintainability and up-to-date automation. Also improved concurrency control to prevent duplicate runs and added `cancel-in-progress`. [[1]](diffhunk://#diff-b4dbaea65a86cef96799e9783b18b31e96a456d476805312f52919d45a060603L3-R6) [[2]](diffhunk://#diff-b4dbaea65a86cef96799e9783b18b31e96a456d476805312f52919d45a060603L17-R19) [[3]](diffhunk://#diff-b4dbaea65a86cef96799e9783b18b31e96a456d476805312f52919d45a060603L28-R30) * Removed the separate `.github/workflows/Nightly-Run.yml` as its functionality is now incorporated into the main workflow, reducing duplication. **Linter and code quality configuration cleanup:** * Removed the `.github/workflows/Linter.yml` workflow and the `.github/linters/.jscpd.json` code duplication configuration, likely in favor of centralizing or simplifying linting and code quality checks. [[1]](diffhunk://#diff-482e65806ed9e4a7320f14964764086b91fed4a28d12e4efde1776472e147e79L1-L32) [[2]](diffhunk://#diff-557094e283c00b23265c1c75872f41c6b1a524a00f0d99dd68ebd22cb63bfdd6L1-L10) **Dependency management automation:** * Enhanced `.github/dependabot.yml` by adding `dependencies` and `github-actions` labels to PRs created by Dependabot, improving tracking and triage of automated dependency updates. **New workflow configuration:** * Added a new `.github/PSModule.yml` to configure the Process-PSModule workflow, setting code coverage targets and providing commented-out options for further customization.
1 parent 819e746 commit 06bb3d0

6 files changed

Lines changed: 30 additions & 62 deletions

File tree

.github/PSModule.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is used to configure the Process-PSModule workflow.
2+
# Reference:
3+
# - https://github.com/PSModule/Process-PSModule?tab=readme-ov-file#configuration
4+
5+
Test:
6+
CodeCoverage:
7+
PercentTarget: 50
8+
# TestResults:
9+
# Skip: true
10+
# SourceCode:
11+
# Skip: true
12+
# PSModule:
13+
# Skip: true
14+
# Module:
15+
# Windows:
16+
# Skip: true
17+
# MacOS:
18+
# Skip: true
19+
# Build:
20+
# Docs:
21+
# Skip: true

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ version: 2
77
updates:
88
- package-ecosystem: github-actions # See documentation for possible values
99
directory: / # Location of package manifests
10+
labels:
11+
- dependencies
12+
- github-actions
1013
schedule:
1114
interval: weekly

.github/linters/.jscpd.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/Linter.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/Nightly-Run.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/Process-PSModule.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Process-PSModule
22

3-
run-name: "Process-PSModule - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4-
53
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
67
pull_request:
78
branches:
89
- main
@@ -14,7 +15,8 @@ on:
1415
- labeled
1516

1617
concurrency:
17-
group: ${{ github.workflow }}
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
1820

1921
permissions:
2022
contents: write
@@ -25,5 +27,5 @@ permissions:
2527

2628
jobs:
2729
Process-PSModule:
28-
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v4
30+
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v5
2931
secrets: inherit

0 commit comments

Comments
 (0)