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 @@ + + + +