From c3f8ca64ba09d7abc9454bd33c7e2594cfdbd91c Mon Sep 17 00:00:00 2001 From: nawed2611 Date: Thu, 30 Mar 2023 14:50:22 +0530 Subject: [PATCH] Update eslint.yml --- .github/workflows/eslint.yml | 42 +++++++++++------------------------- 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 475f8c65..19b8d3f9 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -11,40 +11,22 @@ name: ESLint on: push: - branches: [ "master" ] + branches: ["master"] pull_request: # The branches below must be a subset of the branches above - branches: [ "master" ] + branches: ["master"] schedule: - - cron: '40 23 * * 1' + - cron: "40 23 * * 1" jobs: - eslint: - name: Run eslint scanning + test: + name: Check the source code runs-on: ubuntu-latest - permissions: - contents: read - security-events: write - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install ESLint - run: | - npm install eslint@8.10.0 - npm install @microsoft/eslint-formatter-sarif@2.1.7 - - - name: Run ESLint - run: npx eslint . - --config .eslintrc.js - --ext .js,.jsx,.ts,.tsx - --format @microsoft/eslint-formatter-sarif - --output-file eslint-results.sarif - continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: eslint-results.sarif - wait-for-processing: true + - uses: actions/checkout@v2 + - name: Install packages + run: npm ci + - name: Prettier + run: npm run format + - name: Lint + run: npm run lint