Skip to content

Commit

Permalink
update codequality inspection and tools
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Dec 18, 2023
1 parent c3e889f commit b134c03
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"version": 1,
"isRoot": true,
"tools": {
"nvika": {
"version": "3.0.0",
"jetbrains.resharper.globaltools": {
"version": "2023.3.1",
"commands": [
"nvika"
"jb"
]
},
"jetbrains.resharper.globaltools": {
"version": "2022.1.2",
"nvika": {
"version": "3.0.0",
"commands": [
"jb"
"nvika"
]
}
}
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/codequality.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
name: Code Quality

on:
pull_request: { }
pull_request:
branches: master
push:
branches:
- master
branches: master

env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: false

jobs:
quality:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install .NET
uses: actions/setup-dotnet@v1
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore Tools
run: dotnet tool restore

- name: Restore Packages
run: dotnet restore

- name: Run InspectCode
run: dotnet jb inspectcode ${{github.workspace}}/DragonFruit.Sakura.sln --exclude="**/wwwroot/**.*" --exclude="**/*.razor" --output=${{github.workspace}}/inspectcodereport.xml --cachesDir=${{github.workspace}}/inspectcode --verbosity=WARN --no-build
- name: InspectCode
run: dotnet jb inspectcode DragonFruit.Sakura.sln --exclude="**/wwwroot/**.*" --exclude="**/*.razor" --output=inspectcodereport.xml --cachesDir=inspectcode --verbosity=WARN --no-build

- name: Run NVika
run: dotnet nvika parsereport "${{github.workspace}}/inspectcodereport.xml"
- name: NVika
run: dotnet nvika parsereport inspectcodereport.xml

0 comments on commit b134c03

Please sign in to comment.