Skip to content

Commit 8970afb

Browse files
Bump Process-PSModule to v5 (#37)
## Description This pull request updates the repository's CI/CD and configuration files to streamline workflows, improve dependency management, and update coverage targets. The main changes include consolidating and updating GitHub Actions workflows, improving dependabot labeling and directory structure, and introducing a code coverage target for tests. **Workflow and CI/CD updates:** * Replaces the separate `.github/workflows/Nightly-Run.yml` with a unified schedule and dispatch trigger in `.github/workflows/Process-PSModule.yml`, simplifying nightly and manual runs. [[1]](diffhunk://#diff-ae7e03d0a8740974e1848d0dc7322a8b3f3f4898b37bfd5b226dff69096bb8dfL1-L16) [[2]](diffhunk://#diff-b4dbaea65a86cef96799e9783b18b31e96a456d476805312f52919d45a060603L3-R6) * Updates the referenced workflow version for `Process-PSModule` from `v4` to `v5` for improved or updated workflow steps. * Removes the `.github/workflows/Linter.yml` file, eliminating the dedicated linter workflow from the CI pipeline. **Dependency management improvements:** * Updates `.github/dependabot.yml` to add labels for PRs and changes the NuGet directory from `/PSModule` to `/`, ensuring better tracking and correct path for dependency updates. **Testing and coverage configuration:** * Adds a new `.github/PSModule.yml` file to configure the Process-PSModule workflow, setting a code coverage target of 80%. **Other configuration changes:** * Removes the `.github/linters/.jscpd.json` configuration file, potentially discontinuing code duplication checks or moving this configuration elsewhere.
1 parent 85329f8 commit 8970afb

6 files changed

Lines changed: 32 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: 80
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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ 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
1215
- package-ecosystem: nuget # See documentation for possible values
13-
directory: /PSModule # Location of package manifests
16+
directory: / # Location of package manifests
17+
labels:
18+
- dependencies
19+
- .NET
1420
schedule:
1521
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: 4 additions & 3 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
@@ -26,5 +27,5 @@ permissions:
2627

2728
jobs:
2829
Process-PSModule:
29-
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v4
30+
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v5
3031
secrets: inherit

0 commit comments

Comments
 (0)