-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidated PR validation workflows
* Updated any obsolete actions used in the workflows * Use Linux agents whereever possible * Merged PR Analysis InferSharp into PR Validation workflow (still as a separate job because of conflicting OS requirements of integration tests and InterSharp)
- Loading branch information
Showing
5 changed files
with
35 additions
and
52 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,21 +13,46 @@ on: | |
|
||
jobs: | ||
build-and-test: | ||
runs-on: windows-latest | ||
runs-on: windows-latest # SQL Server LocalDB used in tests requires Windows | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run build and tests | ||
run: ./Build.ps1 | ||
shell: pwsh | ||
|
||
- name: Upload binaries artifact for InferSharp workflow | ||
uses: actions/upload-artifact@v3 | ||
- name: Upload binaries artifact for InferSharp job | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: bin-net6 | ||
path: src\Serilog.Sinks.MSSqlServer\bin\Release\net6.0 | ||
|
||
- name: Upload testresults artifact with code coverage file | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testresults | ||
path: test\Serilog.Sinks.MSSqlServer.Tests\TestResults | ||
|
||
infersharp: | ||
runs-on: ubuntu-latest # Container action used by Infer# requires Linux | ||
needs: build-and-test | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
steps: | ||
- name: Download binaries artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: bin-net6 | ||
path: bin-net6 | ||
|
||
- name: Run Infer# | ||
uses: microsoft/[email protected] | ||
with: | ||
binary-path: bin-net6 | ||
|
||
- name: Upload SARIF output to GitHub Security Center | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: infer-out/report.sarif |
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