Skip to content

Commit 9d3e483

Browse files
authored
7.6.0 release
1 parent 23a9326 commit 9d3e483

File tree

1,165 files changed

+1023
-5341
lines changed

Some content is hidden

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

1,165 files changed

+1023
-5341
lines changed

.devcontainer/devcontainer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "Ubuntu",
3+
"image": "mcr.microsoft.com/devcontainers/base:noble",
4+
"features": {
5+
"ghcr.io/devcontainers/features/dotnet:2": {
6+
"version": "9.0"
7+
},
8+
"ghcr.io/devcontainers/features/git-lfs:1": {},
9+
"ghcr.io/devcontainers/features/powershell:1": {
10+
"version": "7.5.4"
11+
}
12+
},
13+
"postCreateCommand": {
14+
"dotnet-outdated-tool": "dotnet tool install -g dotnet-outdated-tool",
15+
"jetbrains.resharper.globaltools": "dotnet tool install -g JetBrains.ReSharper.GlobalTools"
16+
},
17+
"customizations": {
18+
"vscode": {
19+
"extensions": [
20+
"editorconfig.editorconfig",
21+
"github.vscode-github-actions",
22+
"ms-dotnettools.csdevkit",
23+
"redhat.vscode-yaml",
24+
"redhat.vscode-xml"
25+
],
26+
"settings": {
27+
"redhat.telemetry.enabled": false
28+
}
29+
}
30+
}
31+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build Source
2+
3+
description: This GitHub Action builds sources and uploads its artifacts.
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Setup .NET Core
9+
uses: actions/setup-dotnet@v4
10+
with:
11+
dotnet-version: 9.0.x
12+
- name: Setup PowerShell
13+
uses: milliewalky/setup-pwsh@111b66da66b9e4c068052ed1ae34fcbeb9adcf36
14+
with:
15+
tag: v${{env.PWSH_VERSION}}
16+
- name: Restore source
17+
shell: pwsh
18+
run: |
19+
dotnet restore ${{env.TARGET_FILE}}
20+
env:
21+
TARGET_FILE: source/Karamem0.SPClientCore/Karamem0.SPClientCore.csproj
22+
- name: Build source
23+
shell: pwsh
24+
run: |
25+
dotnet publish ${{env.TARGET_FILE}} `
26+
-c Release `
27+
-p:PublishDir=build `
28+
-p:Version=${{env.BUILD_VERSION}}.${{github.run_number}} `
29+
-p:FileVersion=${{env.BUILD_VERSION}}.${{github.run_number}}
30+
env:
31+
TARGET_FILE: source/Karamem0.SPClientCore/Karamem0.SPClientCore.csproj
32+
- name: Update .config.json file
33+
shell: pwsh
34+
run: |
35+
$json = Get-Content -Path "${{env.TARGET_FILE}}" | ConvertFrom-Json
36+
$json.APPLICATIONINSIGHTS_CONNECTION_STRING = "${{env.TELEMETRY_CONNECTION_STRING}}"
37+
$json | ConvertTo-Json | Set-Content -Path "${{env.TARGET_FILE}}"
38+
env:
39+
TARGET_FILE: source/Karamem0.SPClientCore/build/SPClientCore.config.json
40+
- name: Update .nuspec file
41+
shell: pwsh
42+
run: |
43+
$xml = [xml](Get-Content -Path "${{env.TARGET_FILE}}")
44+
$xml.package.metadata.version = "${{env.BUILD_VERSION}}.${{github.run_number}}"
45+
$xml.Save("${{env.TARGET_FILE}}")
46+
env:
47+
TARGET_FILE: source/Karamem0.SPClientCore/build/SPClientCore.nuspec
48+
- name: Update .psd1 file
49+
shell: pwsh
50+
run: |
51+
Import-Module -Name (Resolve-Path -Path "${{env.TARGET_FILE}}")
52+
Update-ModuleManifest -Path "${{env.TARGET_FILE}}" -ModuleVersion "${{env.BUILD_VERSION}}.${{github.run_number}}" -CmdletsToExport (Get-Command -Module SPClientCore | %{ $_.Name })
53+
env:
54+
TARGET_FILE: source/Karamem0.SPClientCore/build/SPClientCore.psd1
55+
- name: Upload artifacts
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: build
59+
path: source/Karamem0.SPClientCore/build
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to GitHub Packages
2+
3+
description: This GitHub Action deploys built artifacts to GitHub Packages.
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Download artifacts
9+
uses: actions/download-artifact@v4
10+
with:
11+
name: build
12+
path: build/SPClientCore
13+
- name: Setup PowerShell
14+
uses: milliewalky/setup-pwsh@111b66da66b9e4c068052ed1ae34fcbeb9adcf36
15+
with:
16+
tag: v${{env.PWSH_VERSION}}
17+
- name: Publish to GitHub Packages
18+
shell: pwsh
19+
run: |
20+
$username = "${{env.GITHUB_OWNER}}"
21+
$password = ConvertTo-SecureString ${{env.GITHUB_TOKEN}} -AsPlainText -Force
22+
$credential = New-Object System.Management.Automation.PSCredential -ArgumentList $username, $password
23+
Register-PSRepository `
24+
-Name GitHub `
25+
-SourceLocation https://nuget.pkg.github.com/${{env.GITHUB_OWNER}}/index.json `
26+
-PublishLocation https://nuget.pkg.github.com/${{env.GITHUB_OWNER}}/index.json `
27+
-Credential $credential
28+
Publish-Module `
29+
-Path build/SPClientCore `
30+
-Repository GitHub `
31+
-NugetApiKey ${{env.GITHUB_TOKEN}}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy to GitHub Release
2+
3+
description: This GitHub Action deploys built artifacts to GitHub Release.
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Download artifacts
9+
uses: actions/download-artifact@v4
10+
with:
11+
name: build
12+
path: build
13+
- name: Archive artifacts
14+
shell: pwsh
15+
run: Compress-Archive -Path build/* -DestinationPath ${{env.RELEASE_FILE_NAME}}
16+
- name: Create release
17+
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda
18+
env:
19+
GITHUB_TOKEN: ${{env.GITHUB_TOKEN}}
20+
with:
21+
files: ${{env.RELEASE_FILE_NAME}}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy to PowerShell Gallery
2+
3+
description: This GitHub Action deploys built artifacts to PowerShell Gallery.
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Download artifacts
9+
uses: actions/download-artifact@v4
10+
with:
11+
name: build
12+
path: build/SPClientCore
13+
- name: Setup PowerShell
14+
uses: milliewalky/setup-pwsh@111b66da66b9e4c068052ed1ae34fcbeb9adcf36
15+
with:
16+
tag: v${{env.PWSH_VERSION}}
17+
- name: Publish to PowerShell Gallery
18+
shell: pwsh
19+
run: |
20+
Publish-Module -Path build/SPClientCore -NugetApiKey ${{env.NUGET_API_KEY}}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test source
2+
3+
description: This GitHub Action tests sources and uploads reports
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Setup .NET Core
9+
uses: actions/setup-dotnet@v4
10+
with:
11+
dotnet-version: 9.0.x
12+
- name: Test source
13+
shell: pwsh
14+
run: |
15+
dotnet test ${{env.TARGET_FILE}} `
16+
--filter TestCategory=Karamem0.SharePoint.PowerShell.Runtime `
17+
-p:AltCover=true `
18+
-- NUnit.TestOutputXml=${{github.workspace}}/source/test
19+
env:
20+
TARGET_FILE: source/Karamem0.SPClientCore.Test/Karamem0.SPClientCore.Test.csproj
21+
- name: Upload test results
22+
uses: enricomi/publish-unit-test-result-action/linux@170bf24d20d201b842d7a52403b73ed297e6645b
23+
if: always()
24+
with:
25+
files: |
26+
source/test/**/*.xml
27+
check_name: Test results
28+
- name: Upload coverage reports
29+
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3
30+
if: always()
31+
with:
32+
fail_ci_if_error: true
33+
token: ${{env.CODECOV_TOKEN}}
34+
slug: karamem0/sp-client-core

.github/workflows/build-source.yml

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

.github/workflows/deploy-to-github-packages.yml

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

.github/workflows/deploy-to-github-release.yml

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

.github/workflows/deploy-to-powershell-gallery.yml

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

0 commit comments

Comments
 (0)