Skip to content

Commit acdeb05

Browse files
committed
[WIP] v2.0.0 refactor
## [2.0.0] - Unreleased ### Added - Modular architecture: each report section is now a dedicated private function (`Get-AbrVSphere*`) - Internationalization (i18n) support via `Language/` `.psd1` files (`en-US`, `en-GB`, `es-ES`, `fr-FR`, `de-DE`) - Pester test suite (`AsBuiltReport.VMware.vSphere.Tests.ps1`, `LocalizationData.Tests.ps1`, `Invoke-Tests.ps1`) - GitHub Actions Pester workflow (`.github/workflows/Pester.yml`) ### Changed - Complete module rewrite for improved maintainability and extensibility - Module source now uses nested folder structure (`AsBuiltReport.VMware.vSphere/`) - Requires `AsBuiltReport.Core` >= 1.6.2 - `CompatiblePSEditions` now explicitly declares `Desktop` and `Core` support
1 parent 486edf5 commit acdeb05

57 files changed

Lines changed: 13798 additions & 5979 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ body:
9090
I have read and followed the [bug reporting guidelines](https://www.asbuiltreport.com/dev-guide/contributing/#reporting-issues-and-bugs).
9191
required: true
9292
- label: >-
93-
I have read [the documentation](https://www.asbuiltreport.com/user-guide/new-asbuiltconfig),
93+
I have read [the documentation](https://www.asbuiltreport.com/user-guide/quickstart/),
9494
and referred to the [known issues](https://www.asbuiltreport.com/support/known-issues) before submitting this bug report.
9595
required: true
9696
- label: >-

.github/ISSUE_TEMPLATE/change_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
If you are unsure of what a specific requirement means, please follow the links to learn about it and understand why it is necessary before submitting.
2727
options:
2828
- label: >-
29-
I have read [the documentation](https://www.asbuiltreport.com/user-guide/new-asbuiltconfig),
29+
I have read [the documentation](https://www.asbuiltreport.com/user-guide/quickstart/),
3030
and referred to the [known issues](https://www.asbuiltreport.com/support/known-issues) before submitting this change request.
3131
required: true
3232
- label: >-

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
## Checklist:
2929
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
3030
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
31-
- [ ] My code follows the code style of this project.
31+
- [ ] My code follows the [code style](https://www.asbuiltreport.com/dev-guide/contributing/#coding-style-guidelines) of this project.
3232
- [ ] My change requires a change to the documentation.
3333
- [ ] I have updated the documentation accordingly.
34-
- [ ] I have read the [**CONTRIBUTING**](https://www.asbuiltreport.com/about/contributing/) document.
34+
- [ ] I have read the [contributing](https://www.asbuiltreport.com/dev-guide/contributing/) documentation.

.github/workflows/Dependabot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Dependabot configuration for AsBuiltReport.VMware.vSphere
2+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
# Monitor GitHub Actions
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
day: "monday"
12+
labels:
13+
- "dependencies"
14+
- "github-actions"
15+
commit-message:
16+
prefix: "ci"
17+
include: "scope"
18+
open-pull-requests-limit: 5
19+
20+
# Monitor PowerShell modules (via manifest)
21+
- package-ecosystem: "nuget"
22+
directory: "/"
23+
schedule:
24+
interval: "weekly"
25+
day: "monday"
26+
labels:
27+
- "dependencies"
28+
- "powershell"
29+
commit-message:
30+
prefix: "deps"
31+
include: "scope"
32+
open-pull-requests-limit: 5

.github/workflows/PSScriptAnalyzer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ jobs:
55
name: Run PSScriptAnalyzer
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v5
8+
- uses: actions/checkout@v6
99
- name: lint
10-
uses: devblackops/github-action-psscriptanalyzer@master
10+
uses: alagoutte/github-action-psscriptanalyzer@master
1111
with:
1212
sendComment: true
1313
failOnErrors: true

.github/workflows/Pester.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Pester Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
pull_request:
9+
branches:
10+
- master
11+
- dev
12+
13+
jobs:
14+
pester-tests:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set PSRepository to Trusted for PowerShell Gallery
20+
shell: pwsh
21+
run: |
22+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
23+
24+
- name: Install required modules
25+
shell: pwsh
26+
run: |
27+
Install-Module -Name AsBuiltReport.Core -Repository PSGallery -Force -AllowClobber -Scope CurrentUser
28+
Install-Module -Name PScribo -Repository PSGallery -Force -AllowClobber -Scope CurrentUser
29+
Install-Module -Name Pester -MinimumVersion 5.0.0 -Repository PSGallery -Force -AllowClobber -Scope CurrentUser
30+
Install-Module -Name PSScriptAnalyzer -Repository PSGallery -Force -AllowClobber -Scope CurrentUser
31+
32+
- name: Run Pester tests
33+
shell: pwsh
34+
run: |
35+
.\Tests\Invoke-Tests.ps1 -OutputFormat NUnitXml
36+
37+
- name: Publish test results
38+
uses: dorny/test-reporter@v1
39+
if: always()
40+
with:
41+
name: Pester Tests
42+
path: Tests/testResults.xml
43+
reporter: java-junit
44+
fail-on-error: true

.github/workflows/Release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
jobs:
8-
publish-to-gallery:
8+
publish-to-psgallery:
99
runs-on: windows-latest
1010
steps:
1111
- uses: actions/checkout@v4
@@ -20,13 +20,13 @@ jobs:
2020
- name: Test Module Manifest
2121
shell: pwsh
2222
run: |
23-
Test-ModuleManifest .\AsBuiltReport.VMware.vSphere.psd1
23+
Test-ModuleManifest .\AsBuiltReport.VMware.vSphere\AsBuiltReport.VMware.vSphere.psd1
2424
- name: Publish module to PowerShell Gallery
2525
shell: pwsh
2626
run: |
27-
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
27+
Publish-Module -Path .\AsBuiltReport.VMware.vSphere -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
2828
tweet:
29-
needs: publish-to-gallery
29+
needs: publish-to-psgallery
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: Eomm/why-don-t-you-tweet@v2
@@ -42,7 +42,7 @@ jobs:
4242
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
4343
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
4444
bsky-post:
45-
needs: publish-to-gallery
45+
needs: publish-to-psgallery
4646
runs-on: ubuntu-latest
4747
steps:
4848
- uses: zentered/bluesky-post-action@v0.2.0

.github/workflows/Stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9
11+
with:
12+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
13+
days-before-stale: 90
14+
days-before-close: 7
15+
exempt-pr-labels: 'help wanted,enhancement,security,pinned'
16+
stale-pr-label: 'wontfix'
17+
stale-issue-label: 'wontfix'
18+
exempt-issue-labels: 'help wanted,enhancement,security,pinned'
19+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.claude/

AsBuiltReport.VMware.vSphere.json renamed to AsBuiltReport.VMware.vSphere/AsBuiltReport.VMware.vSphere.json

5.13 KB
Binary file not shown.

0 commit comments

Comments
 (0)