-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1009 Bytes
/
ci.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
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
security-events: write
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: pwsh
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build
- run: dotnet test --configuration Release --logger 'console;verbosity=detailed' /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- uses: snyk/actions/dotnet@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: >-
--all-projects
--detection-depth=8
--severity-threshold=high
--sarif-file-output=snyk.sarif
command: test
- uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: snyk.sarif