From 08ed6446f937c2ac79cb5fbbd6fc4bd0ff698de5 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Wed, 25 Dec 2024 03:44:20 +0100 Subject: [PATCH] add lint --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ Parse/Parse.csproj | 4 ++++ 2 files changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a677f2c..4d23b404 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,29 @@ on: paths-ignore: - '**/**.md' jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 6.0 + - name: Install dependencies + run: dotnet restore + - name: Run linting + run: dotnet build --no-restore --configuration Release /warnaserror + env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 + - name: Save linting logs + if: failure() + uses: actions/upload-artifact@v4 + with: + name: stylecop-lint-log + path: lint-output.log check-dotnet: strategy: matrix: diff --git a/Parse/Parse.csproj b/Parse/Parse.csproj index 4e098693..d0085628 100644 --- a/Parse/Parse.csproj +++ b/Parse/Parse.csproj @@ -27,6 +27,10 @@ + + + +