From d81e7a7ee8a6e43b41fce18a4d93eda23c8e98bc Mon Sep 17 00:00:00 2001 From: harryob <55142896+harryob@users.noreply.github.com> Date: Thu, 23 May 2024 01:16:51 +0100 Subject: [PATCH] lint using resharper (#1797) --- .github/workflows/lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..cdc9c261c4 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,26 @@ +name: Lint + +on: + pull_request: + branches: [master] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup submodule + run: | + git submodule update --init --recursive + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.0.100 + - name: Setup Resharper + run: dotnet tool install -g JetBrains.ReSharper.GlobalTools + - name: Run Linter + run: jb inspectcode OpenDream.sln -o="output.json" --project="OpenDream*;DM*" --no-swea + - uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: output.json