From 5421fe3f7107f770c904ed4c7e506ae7a5cde2c2 Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Tue, 18 Oct 2022 12:14:27 -0400 Subject: [PATCH] Add linter workflow (#2213) --- .github/workflows/lint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 000000000..b35bee3c7 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Lint + +on: + pull_request: + branches: [ main ] + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + # Ensure full list of changed files within `super-linter` + fetch-depth: 0 + - name: Run linters + uses: github/super-linter@v4 + env: + DEFAULT_BRANCH: ${{ github.base_ref }} + EDITORCONFIG_FILE_NAME: .editorconfig + LINTER_RULES_PATH: /src/ + VALIDATE_ALL_CODEBASE: false + VALIDATE_CSHARP: true