-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
a436a96
commit ca31756
Showing
6 changed files
with
66 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: PRs | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
paths-ignore: | ||
- "**/*.md" | ||
- "**/*.gitignore" | ||
- "**/*.gitattributes" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
global-json-file: "./global.json" | ||
|
||
- name: Install Aspire workload | ||
run: dotnet workload install aspire | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build -c Release --no-restore /p:CopyLocalLockFileAssemblies=true | ||
|
||
- name: Test | ||
id: test | ||
# Note that the space after the last double dash (--) is intentional | ||
run: > | ||
dotnet test --no-restore | ||
--logger console --logger trx --logger html | ||
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" | ||
--results-directory ${{github.workspace}}/TestResults --blame | ||
-- | ||
RunConfiguration.CollectSourceInformation=true | ||
- name: Upload Test Results | ||
if: (success() || steps.test.conclusion == 'failure') | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: TestResults | ||
path: ${{github.workspace}}/TestResults |
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