Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #267 from aspriddell/codecutter-to-dotnet-tool
Browse files Browse the repository at this point in the history
move away from codecutter
  • Loading branch information
aspriddell authored Nov 28, 2021
2 parents aec2715 + 383f05a commit d487071
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 17 deletions.
18 changes: 18 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"isRoot": true,
"tools": {
"nvika": {
"version": "2.2.0",
"commands": [
"nvika"
]
},
"jetbrains.resharper.globaltools": {
"version": "2021.2.2",
"commands": [
"jb"
]
}
}
}
31 changes: 19 additions & 12 deletions .github/workflows/codequality.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
name: Code Quality

on: [ pull_request, push ]

jobs:
quality:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install CodeCutter
run: powershell Invoke-WebRequest -Uri "https://github.com/dragonfruitnetwork/CodeCutter/releases/latest/download/DragonFruit.CodeCutter.exe" -OutFile ".\DragonFruit.CodeCutter.exe"
- name: Install .NET 3.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"

- name: Install .NET 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"

- name: Restore Tools
run: dotnet tool restore

- name: "Setup MSBuild"
uses: microsoft/[email protected]
- name: Restore Packages
run: dotnet restore

- name: NuGet Restore
run: |
nuget locals all -clear
nuget restore
- name: InspectCode
run: dotnet jb inspectcode ${{github.workspace}}/DragonFruit.Six.Api.sln --output=${{github.workspace}}/inspectcodereport.xml --cachesDir=${{github.workspace}}/inspectcode --verbosity=WARN --no-build

- name: Code Quality Check
run: ".\\DragonFruit.CodeCutter.exe"
- name: NVika
run: dotnet nvika parsereport "${{github.workspace}}/inspectcodereport.xml"
5 changes: 0 additions & 5 deletions codecutter.json

This file was deleted.

0 comments on commit d487071

Please sign in to comment.