-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 969 Bytes
/
codequality.yaml
File metadata and controls
41 lines (32 loc) · 969 Bytes
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
name: Code Quality
on:
pull_request:
branches: master
push:
branches: '**'
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: false
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
10.0.x
- uses: reviewdog/action-setup@d8edfce3dd5e1ec6978745e801f9c50b5ef80252 # v1.4.0
with:
reviewdog_version: latest
- name: Restore Tools
run: dotnet tool restore
- name: Restore Packages
run: dotnet restore
- name: InspectCode
run: dotnet jb inspectcode DragonFruit.Data.sln --output=inspectcodereport.sarif --cachesDir=inspectcode --severity=WARNING --no-build
- name: Publish report
run: cat inspectcodereport.sarif | reviewdog -f=sarif -reporter=github-pr-check -diff="git diff"
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}