Skip to content

Commit e5d5257

Browse files
🧪 [Test]: Remove artifact path assertions
1 parent c2f7f58 commit e5d5257

3 files changed

Lines changed: 0 additions & 41 deletions

File tree

.github/workflows/Build-Docs.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@ jobs:
4141
Name: ${{ fromJson(inputs.Settings).Name }}
4242
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
4343

44-
- name: Verify framework artifact root
45-
if: ${{ github.repository == 'PSModule/Process-PSModule' }}
46-
shell: pwsh
47-
working-directory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
48-
run: |
49-
if (-not (Test-Path -Path '.PSModule/docs')) {
50-
throw 'Expected generated documentation at .PSModule/docs.'
51-
}
52-
53-
if (Test-Path -Path 'outputs') {
54-
throw 'Legacy framework artifact path exists: outputs'
55-
}
56-
5744
- name: Upload docs artifact
5845
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5946
with:

.github/workflows/Build-Module.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,3 @@ jobs:
6060
Prerelease: ${{ fromJson(inputs.Settings).Publish.Module.Resolution.Prerelease }}
6161
ArtifactName: ${{ inputs.ArtifactName }}
6262
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
63-
64-
- name: Verify framework artifact root
65-
if: ${{ github.repository == 'PSModule/Process-PSModule' }}
66-
shell: pwsh
67-
working-directory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
68-
run: |
69-
if (-not (Test-Path -Path '.PSModule/module')) {
70-
throw 'Expected built module at .PSModule/module.'
71-
}
72-
73-
if (Test-Path -Path 'outputs') {
74-
throw 'Legacy framework artifact path exists: outputs'
75-
}

.github/workflows/Build-Site.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,6 @@ jobs:
5858
SitePath: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/site/_site
5959
WorkflowPath: _wf
6060

61-
- name: Verify framework artifact root
62-
if: ${{ github.repository == 'PSModule/Process-PSModule' }}
63-
shell: pwsh
64-
working-directory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
65-
run: |
66-
if (-not (Test-Path -Path '.PSModule/site/_site')) {
67-
throw 'Expected generated site at .PSModule/site/_site.'
68-
}
69-
70-
foreach ($legacyPath in @('outputs', '_site')) {
71-
if (Test-Path -Path $legacyPath) {
72-
throw "Legacy framework artifact path exists: $legacyPath"
73-
}
74-
}
75-
7661
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
7762
with:
7863
name: github-pages

0 commit comments

Comments
 (0)