From 3c5605896972eb8f9768aa87689f63ca597ce179 Mon Sep 17 00:00:00 2001 From: Ashesh <3626859+Ashesh3@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:36:31 +0530 Subject: [PATCH] Add GitHub Action for Linting on Pull Requests (#6490) * Create linter.yml * add branches --- .github/workflows/linter.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000000..3aa67796eea --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,31 @@ +name: Lint Code Base + +on: + pull_request: + branches: + - develop + - master + merge_group: + +jobs: + lint: + runs-on: ubuntu-latest + permissions: + contents: read + packages: read + statuses: write + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Install dependencies + run: npm ci + + - name: Run lint + run: npm run lint