Skip to content

Commit ffe4bd4

Browse files
committed
feat: enhance CI workflow, project structure, and VS Code settings
- Update CodeGPT API key in VS Code settings - Install Pester module in CI workflow - Migrate project to .NET SDK and update dependencies
1 parent 36482fb commit ffe4bd4

File tree

432 files changed

+21298
-3
lines changed

Some content is hidden

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

432 files changed

+21298
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- name: Run PSScriptAnalyzer
15+
- name: Install Required PowerShell Modules
1616
run: |
1717
pwsh -c "Install-Module PSScriptAnalyzer -Force -Scope CurrentUser"
18+
pwsh -c "Install-Module Pester -Force -Scope CurrentUser"
19+
20+
- name: Run PSScriptAnalyzer
21+
run: |
1822
pwsh -c "Invoke-ScriptAnalyzer -Path ./ -Recurse -Settings ./PSScriptAnalyzer.settings.psd1"
1923
2024
- name: Run Tests

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"[powershell]": {
1616
"editor.defaultFormatter": "ms-vscode.powershell"
1717
},
18-
"CodeGPT.apiKey": "CodeGPT Plus Beta"
18+
"CodeGPT.apiKey": "CodeGPT Plus"
1919
}

OSDCloudCustomBuilder.csproj

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
1-
<Project Sdk="Microsoft.PowerShell.Sdk/7.4.1">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3+
<TargetFramework>net8.0</TargetFramework>
34
<RootNamespace>OSDCloudCustomBuilder</RootNamespace>
45
<Description>Fully migrated PowerShell module: OSDCloudCustomBuilder</Description>
56
<ModuleVersion>1.0.0</ModuleVersion>
67
<PowerShellVersion>7.0</PowerShellVersion>
8+
<AssemblyVersion>1.0.0</AssemblyVersion>
9+
<FileVersion>1.0.0</FileVersion>
10+
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
11+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
712
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.4.1" />
16+
<PackageReference Include="PowerShellStandard.Library" Version="5.1.1" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<None Include="*.psd1" CopyToOutputDirectory="PreserveNewest" />
21+
<None Include="*.psm1" CopyToOutputDirectory="PreserveNewest" />
22+
<None Include="Public\*.ps1" CopyToOutputDirectory="PreserveNewest" />
23+
<None Include="Private\*.ps1" CopyToOutputDirectory="PreserveNewest" />
24+
<None Include="Shared\*.ps1" CopyToOutputDirectory="PreserveNewest" />
25+
<None Include="Shared\*.psm1" CopyToOutputDirectory="PreserveNewest" />
26+
</ItemGroup>
827
</Project>
74.5 KB
Binary file not shown.

bin/Debug/net8.0/Json.More.dll

28.5 KB
Binary file not shown.
18.5 KB
Binary file not shown.
238 KB
Binary file not shown.
453 KB
Binary file not shown.
376 KB
Binary file not shown.
14.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)