Skip to content

Commit 0dfb234

Browse files
🩹 [Refactor]: Simplify CI workflow inputs by removing unnecessary parameters and updating descriptions for clarity
1 parent 882a5b4 commit 0dfb234

File tree

6 files changed

+7
-79
lines changed

6 files changed

+7
-79
lines changed

‎.github/workflows/CI.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -34,39 +34,14 @@ on:
3434
required: false
3535
Path:
3636
type: string
37-
description: The path to the source code of the module.
38-
required: false
39-
default: src
40-
Workspace:
41-
type: string
42-
description: The path to the workspace.
37+
description: The path to the root of the repo.
4338
required: false
4439
default: ${{ github.workspace }}
45-
ModulesOutputPath:
46-
type: string
47-
description: The path to the output directory for the modules.
48-
required: false
49-
default: outputs/modules
50-
DocsOutputPath:
51-
type: string
52-
description: The path to the output directory for the documentation.
53-
required: false
54-
default: outputs/docs
55-
SiteOutputPath:
56-
type: string
57-
description: The path to the output directory for the site.
58-
required: false
59-
default: outputs/site
6040
SkipTests:
6141
type: string
6242
description: Defines what types of tests to skip. Allowed values are 'All', 'SourceCode', 'Module', 'None', 'macOS', 'Windows', 'Linux'.
6343
required: false
6444
default: None
65-
PublishDocs:
66-
type: boolean
67-
description: Whether to publish the documentation using MkDocs and GitHub Pages.
68-
required: false
69-
default: true
7045
Debug:
7146
type: boolean
7247
description: Enable debug output.
@@ -123,7 +98,6 @@ jobs:
12398
with:
12499
Name: ${{ inputs.Name }}
125100
Path: ${{ inputs.Path }}
126-
ModulesOutputPath: ${{ inputs.ModulesOutputPath }}
127101
Debug: ${{ inputs.Debug }}
128102
Prerelease: ${{ inputs.Prerelease }}
129103
Verbose: ${{ inputs.Verbose }}
@@ -136,13 +110,10 @@ jobs:
136110
with:
137111
Name: ${{ inputs.Name }}
138112
Path: ${{ inputs.Path }}
139-
ModulesOutputPath: ${{ inputs.ModulesOutputPath }}
140-
DocsOutputPath: ${{ inputs.DocsOutputPath }}
141113
Debug: ${{ inputs.Debug }}
142114
Prerelease: ${{ inputs.Prerelease }}
143115
Verbose: ${{ inputs.Verbose }}
144116
Version: ${{ inputs.Version }}
145-
SiteOutputPath: ${{ inputs.SiteOutputPath }}
146117

147118
TestModule:
148119
if: ${{ needs.Build-Module.result == 'success' && !cancelled() }}
@@ -164,7 +135,6 @@ jobs:
164135
OS: ${{ matrix.OSName }}
165136
Name: ${{ inputs.Name }}
166137
Path: ${{ inputs.Path }}
167-
ModulesOutputPath: ${{ inputs.ModulesOutputPath }}
168138
SkipTests: ${{ inputs.SkipTests }}
169139
Debug: ${{ inputs.Debug }}
170140
Prerelease: ${{ inputs.Prerelease }}
@@ -177,7 +147,7 @@ jobs:
177147
- Build-Module
178148
uses: ./.github/workflows/Gather-Tests.yml
179149
with:
180-
Workspace: ${{ inputs.Workspace }}
150+
Path: ${{ inputs.Path }}
181151

182152
# # This is necessary as there is no way to get output from a matrix job
183153
# TestModule-pwsh-ubuntu-latest:

‎.github/workflows/Workflow-Test-Default-CI.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,5 @@ jobs:
2323
secrets: inherit
2424
with:
2525
Name: PSModuleTest
26-
Path: tests/srcTestRepo/src
27-
ModulesOutputPath: tests/srcTestRepo/outputs/modules
28-
DocsOutputPath: tests/srcTestRepo/outputs/docs
26+
Path: tests/srcTestRepo
2927
SkipTests: Module
30-
Workspace: tests/srcTestRepo

‎.github/workflows/Workflow-Test-Default.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
secrets: inherit
2626
with:
2727
Name: PSModuleTest
28-
Path: tests/srcTestRepo/src
29-
ModulesOutputPath: tests/srcTestRepo/outputs/modules
30-
DocsOutputPath: tests/srcTestRepo/outputs/docs
28+
Path: tests/srcTestRepo
3129
TestProcess: true
3230
SkipTests: Module
33-
Workspace: tests/srcTestRepo

‎.github/workflows/Workflow-Test-WithManifest-CI.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,5 @@ jobs:
2323
secrets: inherit
2424
with:
2525
Name: PSModuleTest
26-
Path: tests/srcWithManifestTestRepo/src
27-
ModulesOutputPath: tests/srcWithManifestTestRepo/outputs/modules
28-
DocsOutputPath: tests/srcWithManifestTestRepo/outputs/docs
26+
Path: tests/srcWithManifestTestRepo
2927
SkipTests: Linux
30-
Workspace: tests/srcWithManifestTestRepo

‎.github/workflows/Workflow-Test-WithManifest.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
secrets: inherit
2626
with:
2727
Name: PSModuleTest
28-
Path: tests/srcWithManifestTestRepo/src
29-
ModulesOutputPath: tests/srcWithManifestTestRepo/outputs/modules
30-
DocsOutputPath: tests/srcWithManifestTestRepo/outputs/docs
28+
Path: tests/srcWithManifestTestRepo
3129
TestProcess: true
3230
SkipTests: Linux
33-
Workspace: tests/srcWithManifestTestRepo

‎.github/workflows/workflow.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,9 @@ on:
3434
required: false
3535
Path:
3636
type: string
37-
description: The path to the source code of the module.
38-
required: false
39-
default: src
40-
Workspace:
41-
type: string
42-
description: The path to the workspace.
37+
description: The path to the root of the repo.
4338
required: false
4439
default: ${{ github.workspace }}
45-
ModulesOutputPath:
46-
type: string
47-
description: The path to the output directory for the modules.
48-
required: false
49-
default: outputs/modules
50-
DocsOutputPath:
51-
type: string
52-
description: The path to the output directory for the documentation.
53-
required: false
54-
default: outputs/docs
55-
SiteOutputPath:
56-
type: string
57-
description: The path to the output directory for the site.
58-
required: false
59-
default: outputs/site
6040
SkipTests:
6141
type: string
6242
description: Defines what types of tests to skip. Allowed values are 'All', 'SourceCode', 'Module', 'None', 'macOS', 'Windows', 'Linux'.
@@ -67,11 +47,6 @@ on:
6747
description: Whether to test the process.
6848
required: false
6949
default: false
70-
PublishDocs:
71-
type: boolean
72-
description: Whether to publish the documentation using MkDocs and GitHub Pages.
73-
required: false
74-
default: true
7550
Debug:
7651
type: boolean
7752
description: Enable debug output.
@@ -130,7 +105,6 @@ jobs:
130105
with:
131106
Name: ${{ inputs.Name }}
132107
Path: ${{ inputs.Path }}
133-
ModulesOutputPath: ${{ inputs.ModulesOutputPath }}
134108
Debug: ${{ inputs.Debug }}
135109
Prerelease: ${{ inputs.Prerelease }}
136110
Verbose: ${{ inputs.Verbose }}
@@ -143,9 +117,6 @@ jobs:
143117
with:
144118
Name: ${{ inputs.Name }}
145119
Path: ${{ inputs.Path }}
146-
ModulesOutputPath: ${{ inputs.ModulesOutputPath }}
147-
DocsOutputPath: ${{ inputs.DocsOutputPath }}
148-
SiteOutputPath: ${{ inputs.SiteOutputPath }}
149120
Debug: ${{ inputs.Debug }}
150121
Prerelease: ${{ inputs.Prerelease }}
151122
Verbose: ${{ inputs.Verbose }}
@@ -171,7 +142,6 @@ jobs:
171142
OS: ${{ matrix.OSName }}
172143
Name: ${{ inputs.Name }}
173144
Path: ${{ inputs.Path }}
174-
ModulesOutputPath: ${{ inputs.ModulesOutputPath }}
175145
SkipTests: ${{ inputs.SkipTests }}
176146
Debug: ${{ inputs.Debug }}
177147
Prerelease: ${{ inputs.Prerelease }}

0 commit comments

Comments
 (0)