Skip to content

Commit b6d0edb

Browse files
authored
Merge pull request #64 from AsBuiltReport/dev
v1.5.0 release
2 parents 5d1586a + dceea9e commit b6d0edb

File tree

157 files changed

+8934
-1469
lines changed

Some content is hidden

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

157 files changed

+8934
-1469
lines changed

.github/Dependabot.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Dependabot configuration for AsBuiltReport.Core
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
33+
ignore:
34+
# PScribo updates should be reviewed manually
35+
- dependency-name: "PScribo"
36+
update-types: ["version-update:semver-major"]

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
#patreon: # Replace with a single Patreon username
5+
#open_collective: # Replace with a single Open Collective username
6+
ko_fi: B0B7DDGZ7
7+
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
#liberapay: # Replace with a single Liberapay username
10+
#issuehunt: # Replace with a single IssueHunt username
11+
#lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
#polar: # Replace with a single Polar username
13+
#buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
#thanks_dev: # Replace with a single thanks.dev username
15+
#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
- [ ] My code follows the code style 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/) page.
34+
- [ ] I have read the [**CONTRIBUTING**](/CONTRIBUTING.md) page.

.github/workflows/PSScriptAnalyzer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on: [push, pull_request]
33
jobs:
44
lint:
55
name: Run PSScriptAnalyzer
6+
permissions:
7+
contents: read
8+
pull-requests: write
69
runs-on: ubuntu-latest
710
steps:
811
- uses: actions/checkout@v4

.github/workflows/Pester.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Pester Tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [main, dev, master]
9+
pull_request:
10+
branches: [main, dev, master]
11+
workflow_dispatch:
12+
13+
jobs:
14+
test:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [windows-latest, ubuntu-latest, macos-latest]
20+
psversion: [pwsh, powershell]
21+
exclude:
22+
# PowerShell 5.1 (powershell) is only available on Windows
23+
- os: ubuntu-latest
24+
psversion: powershell
25+
- os: macos-latest
26+
psversion: powershell
27+
28+
name: Test on ${{ matrix.os }} with ${{ matrix.psversion == 'pwsh' && 'PowerShell 7.x' || 'PowerShell 5.1' }}
29+
30+
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@v4
33+
34+
- name: Install required modules (PowerShell 7.x)
35+
if: matrix.psversion == 'pwsh'
36+
shell: pwsh
37+
run: |
38+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
39+
Install-Module -Name Pester -MinimumVersion 5.0.0 -Force -SkipPublisherCheck
40+
Install-Module -Name PScribo -MinimumVersion 0.11.1 -Force
41+
42+
- name: Install required modules (PowerShell 5.1)
43+
if: matrix.psversion == 'powershell'
44+
shell: powershell
45+
run: |
46+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
47+
Install-Module -Name Pester -MinimumVersion 5.0.0 -Force -SkipPublisherCheck
48+
Install-Module -Name PScribo -MinimumVersion 0.11.1 -Force
49+
50+
- name: Run Pester tests (PowerShell 7.x)
51+
if: matrix.psversion == 'pwsh'
52+
shell: pwsh
53+
run: |
54+
.\Tests\Invoke-Tests.ps1 -CodeCoverage -OutputFormat NUnitXml
55+
56+
- name: Run Pester tests (PowerShell 5.1)
57+
if: matrix.psversion == 'powershell'
58+
shell: powershell
59+
run: |
60+
.\Tests\Invoke-Tests.ps1 -CodeCoverage -OutputFormat NUnitXml
61+
62+
- name: Upload test results
63+
if: always()
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: test-results-${{ matrix.os }}-${{ matrix.psversion }}
67+
path: testResults.xml
68+
69+
- name: Upload code coverage
70+
if: always() && matrix.os == 'windows-latest' && matrix.psversion == 'pwsh'
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: code-coverage
74+
path: coverage.xml
75+
76+
- name: Upload coverage reports to Codecov
77+
if: always() && matrix.os == 'windows-latest' && matrix.psversion == 'pwsh'
78+
uses: codecov/codecov-action@v5
79+
with:
80+
token: ${{ secrets.CODECOV_TOKEN }}
81+
slug: AsBuiltReport/AsBuiltReport.Core
82+
files: ./coverage.xml
83+
flags: unittests
84+
fail_ci_if_error: false

.github/workflows/Release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Publish PowerShell Module
2-
2+
permissions:
3+
contents: read
34
on:
45
release:
56
types: [published]
@@ -20,11 +21,11 @@ jobs:
2021
- name: Test Module Manifest
2122
shell: pwsh
2223
run: |
23-
Test-ModuleManifest .\AsBuiltReport.Core.psd1
24+
Test-ModuleManifest .\AsBuiltReport.Core\AsBuiltReport.Core.psd1
2425
- name: Publish module to PowerShell Gallery
2526
shell: pwsh
2627
run: |
27-
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
28+
Publish-Module -Path .\AsBuiltReport.Core\ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
2829
tweet:
2930
needs: publish-to-gallery
3031
runs-on: ubuntu-latest

.github/workflows/Stale.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/stale@v9
14+
with:
15+
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.'
16+
days-before-stale: 60
17+
days-before-close: 7
18+
exempt-pr-labels: 'help wanted,enhancement,security,pinned'
19+
stale-pr-label: 'wontfix'
20+
stale-issue-label: 'wontfix'
21+
exempt-issue-labels: 'help wanted,enhancement,security,pinned'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.claude/
2+
.vscode/launch.json
3+
coverage.xml

AsBuiltReport.Core.Style.ps1

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

AsBuiltReport.Core.psm1

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

0 commit comments

Comments
 (0)