From 159bc7eef969b1053e47c403f713a0ed7e81493d Mon Sep 17 00:00:00 2001 From: Dan Rigby <114417+DanRigby@users.noreply.github.com> Date: Mon, 8 Jan 2024 10:47:06 -0500 Subject: [PATCH] Switch back to InspectCode since Qodana is paid only now --- .config/dotnet-tools.json | 18 ++++++++++++++++++ .github/workflows/build.yml | 9 +++++++++ .github/workflows/qodana.yml | 28 ---------------------------- LICENSE | 2 +- 4 files changed, 28 insertions(+), 29 deletions(-) create mode 100644 .config/dotnet-tools.json delete mode 100644 .github/workflows/qodana.yml diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..4af3165 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "jetbrains.resharper.globaltools": { + "version": "2023.3.2", + "commands": [ + "jb" + ] + }, + "nvika": { + "version": "3.0.0", + "commands": [ + "nvika" + ] + } + } + } diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c17409..275d209 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,8 +18,17 @@ jobs: with: dotnet-version: '7.x' + - name: Restore Tools + run: dotnet tool restore + - name: Build Project run: dotnet build - name: Run Tests run: dotnet test --no-build --verbosity normal + + - name: Run InspectCode + run: dotnet jb inspectcode --no-build --swea --severity=SUGGESTION --output=inspectcode.xml *.sln + + - name: Run NVika + run: dotnet nvika parsereport "inspectcode.xml" \ No newline at end of file diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml deleted file mode 100644 index 192975a..0000000 --- a/.github/workflows/qodana.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Qodana - -on: - workflow_dispatch: - pull_request: - push: - branches: [ main ] - -permissions: - contents: read - packages: read - security-events: write - -jobs: - qodana: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 - - name: 'Qodana Scan' - uses: JetBrains/qodana-action@main - env: - QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} - - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json diff --git a/LICENSE b/LICENSE index 5203ff8..fed5cd4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Dan Rigby +Copyright (c) 2024 Dan Rigby Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal