-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
47 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
name: Auto approve | ||
|
||
on: | ||
pull_request_target | ||
pull_request_target: | ||
types: [opened] | ||
|
||
jobs: | ||
auto-approve: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hmarr/auto-approve-action@v2 | ||
if: github.actor == 'Gitii' | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- uses: hmarr/auto-approve-action@v2 | ||
if: github.actor == 'Gitii' | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,25 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: | | ||
3.1.x | ||
5.0.x | ||
6.0.x | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
with: | ||
msbuild-architecture: x64 | ||
vs-version: 17 | ||
vs-prerelease: true | ||
- name: Setup VSTest Path | ||
uses: darenm/Setup-VSTest@v1 | ||
- name: Build | ||
run: dotnet build --configuration Release | ||
run: msbuild /t:build -restore /p:Configuration=Release -m:4 Community.Sextant.WinUI.sln | ||
- name: Test | ||
run: dotnet test --configuration Release --no-build | ||
run: Get-ChildItem -Recurse -Filter "*.Tests.dll" | ? { $_.FullName -Match "bin[\\/]Release" -and $_.FullName -notmatch "ref" } | % { vstest.console.exe $_.FullName } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
jobs: | ||
publish: | ||
runs-on: windows-latest | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: olegtarasov/[email protected] | ||
id: tagName | ||
|
@@ -20,26 +20,33 @@ jobs: | |
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: | | ||
3.1.x | ||
5.0.x | ||
6.0.x | ||
include-prerelease: true | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
with: | ||
msbuild-architecture: x64 | ||
vs-version: 17 | ||
vs-prerelease: true | ||
- name: Setup VSTest Path | ||
uses: darenm/Setup-VSTest@v1 | ||
- name: Build | ||
run: dotnet build -p:Configuration=Release -p:Version="$env:TAG_NAME" | ||
run: msbuild /t:build -restore /p:Configuration=Release /p:Version="$env:TAG_NAME" -m:4 Community.Sextant.WinUI.sln | ||
env: | ||
TAG_NAME: ${{ steps.tagName.outputs.tag }} | ||
- name: Test | ||
run: dotnet test -p:Configuration=Release --no-build | ||
run: Get-ChildItem -Recurse -Filter "*.Tests.dll" | ? { $_.FullName -Match "bin[\\/]Release" -and $_.FullName -notmatch "ref" } | % { vstest.console.exe $_.FullName } | ||
- name: Pack | ||
run: dotnet pack -p:Configuration=Release -o "$(Join-Path $(Get-Location) nuget)" /p:Version="$env:TAG_NAME" --no-build | ||
run: msbuild /t:pack /p:Configuration=Release /p:OutputPath="$(Join-Path $(Get-Location) nuget)" /p:Version="$env:TAG_NAME" -m:1 ./Community.Sextant.WinUI.sln | ||
env: | ||
TAG_NAME: ${{ steps.tagName.outputs.tag }} | ||
- name: Attach nuget packages to Github releases | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: "./nuget/*.nupkg" | ||
body_path: "./RELEASE-NOTES.txt" | ||
#- name: Push packages to Nuget registry | ||
# run: dotnet nuget push $(Get-ChildItem -Path ./nuget -Filter "*.nupkg").FullName --source "https://api.nuget.org/v3/index.json" --api-key "$env:NUGET_API_KEY" --skip-duplicate --no-symbols 1 | ||
# env: | ||
# NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | ||
- name: Push packages to Nuget registry | ||
run: dotnet nuget push $(Get-ChildItem -Path ./nuget -Filter "*.nupkg").FullName --source "https://api.nuget.org/v3/index.json" --api-key "$env:NUGET_API_KEY" --skip-duplicate --no-symbols 1 | ||
env: | ||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pendencyInjection/Community.Sextant.WinUI.Microsoft.Extensions.DependencyInjection.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Community.Sextant.WinUI.Splat/Community.Sextant.WinUI.Splat.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters