-
Notifications
You must be signed in to change notification settings - Fork 148
58 lines (48 loc) · 1.53 KB
/
pr-validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: PR Validation
on:
pull_request:
branches: [ dev, main ]
# Run every biweekly to discover failures due to environment changes
schedule:
- cron: '0 0 1,15 * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-test:
runs-on: windows-latest # SQL Server LocalDB used in tests requires Windows
steps:
- uses: actions/checkout@v4
- name: Run build and tests
run: ./Build.ps1
shell: pwsh
- 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@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