From 4818344df4438c4b6198bec22fa58398729c65af Mon Sep 17 00:00:00 2001 From: Ashesh <3626859+Ashesh3@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:00:21 +0530 Subject: [PATCH 1/2] Create linter.yml --- .github/workflows/linter.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..632be735685 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,24 @@ +name: Lint Code Base + +on: + pull_request: + branches: [master] + merge_group: + +jobs: + lint: + runs-on: ubuntu-latest + 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 From a319833748a126a9712ac567aaa593f71c0455f6 Mon Sep 17 00:00:00 2001 From: Ashesh <3626859+Ashesh3@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:20:37 +0530 Subject: [PATCH 2/2] add branches --- .github/workflows/linter.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 632be735685..3aa67796eea 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -2,12 +2,19 @@ name: Lint Code Base on: pull_request: - branches: [master] + 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