Skip to content

Commit 0ee59b2

Browse files
authored
7.6.0 release
1 parent 23a9326 commit 0ee59b2

File tree

1,164 files changed

+693
-5031
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,164 files changed

+693
-5031
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: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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: Restore source
13+
shell: pwsh
14+
run: |
15+
dotnet restore ${{env.TARGET_FILE}}
16+
env:
17+
TARGET_FILE: source/Karamem0.SPClientCore/Karamem0.SPClientCore.csproj
18+
- name: Build source
19+
shell: pwsh
20+
run: |
21+
dotnet publish ${{env.TARGET_FILE}} `
22+
-c Release `
23+
-p:PublishDir=build `
24+
-p:Version=${{env.BUILD_VERSION}}.${{github.run_number}} `
25+
-p:FileVersion=${{env.BUILD_VERSION}}.${{github.run_number}}
26+
env:
27+
TARGET_FILE: source/Karamem0.SPClientCore/Karamem0.SPClientCore.csproj
28+
- name: Update .config.json file
29+
shell: pwsh
30+
run: |
31+
$json = Get-Content -Path "${{env.TARGET_FILE}}" | ConvertFrom-Json
32+
$json.APPLICATIONINSIGHTS_CONNECTION_STRING = "${{env.TELEMETRY_CONNECTION_STRING}}"
33+
$json | ConvertTo-Json | Set-Content -Path "${{env.TARGET_FILE}}"
34+
env:
35+
TARGET_FILE: source/Karamem0.SPClientCore/build/SPClientCore.config.json
36+
- name: Update .nuspec file
37+
shell: pwsh
38+
run: |
39+
$xml = [xml](Get-Content -Path "${{env.TARGET_FILE}}")
40+
$xml.package.metadata.version = "${{env.BUILD_VERSION}}.${{github.run_number}}"
41+
$xml.Save("${{env.TARGET_FILE}}")
42+
env:
43+
TARGET_FILE: source/Karamem0.SPClientCore/build/SPClientCore.nuspec
44+
- name: Update .psd1 file
45+
shell: pwsh
46+
run: |
47+
Import-Module -Name (Resolve-Path -Path "${{env.TARGET_FILE}}")
48+
Update-ModuleManifest -Path "${{env.TARGET_FILE}}" -ModuleVersion "${{env.BUILD_VERSION}}.${{github.run_number}}" -CmdletsToExport (Get-Command -Module SPClientCore | %{ $_.Name })
49+
env:
50+
TARGET_FILE: source/Karamem0.SPClientCore/build/SPClientCore.psd1
51+
- name: Upload artifacts
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: build
55+
path: source/Karamem0.SPClientCore/build
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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: Publish to GitHub Packages
14+
shell: pwsh
15+
run: |
16+
$username = ${{env.GITHUB_OWNER}}
17+
$password = ConvertTo-SecureString ${{env.GITHUB_TOKEN}} -AsPlainText -Force
18+
$credential = New-Object System.Management.Automation.PSCredential -ArgumentList $username, $password
19+
Register-PSRepository `
20+
-Name GitHub `
21+
-SourceLocation https://nuget.pkg.github.com/${{env.GITHUB_OWNER}}/index.json `
22+
-PublishLocation https://nuget.pkg.github.com/${{env.GITHUB_OWNER}}/index.json `
23+
-Credential $credential
24+
Publish-Module `
25+
-Path build/SPClientCore `
26+
-Repository GitHub `
27+
-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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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: Publish to PowerShell Gallery
14+
shell: pwsh
15+
run: |
16+
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)