From 2b07630d480ee43cd75d32e4fa120e21f8a574b3 Mon Sep 17 00:00:00 2001 From: camarm Date: Sat, 16 Dec 2023 16:41:11 +0100 Subject: [PATCH 1/4] Create eslint.yml --- .github/workflows/eslint.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/eslint.yml diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 00000000..11de391b --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,36 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# ESLint is a tool for identifying and reporting on patterns +# found in ECMAScript/JavaScript code. +# More details at https://github.com/eslint/eslint +# and https://eslint.org + +name: ESLint + +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + +jobs: + eslint: + name: Run eslint scanning + 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: Setup Environnement + run: | + npm install + + - name: Run ESLint + run: npm run lint From 3929cccb28aa86325a3b6978d418450ad977be49 Mon Sep 17 00:00:00 2001 From: camarm Date: Sat, 16 Dec 2023 16:43:25 +0100 Subject: [PATCH 2/4] Update eslint.yml --- .github/workflows/eslint.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 11de391b..97fa2ae1 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -28,9 +28,11 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Go to app directory + run: cd app + - name: Setup Environnement - run: | - npm install + run: cd app npm install - name: Run ESLint run: npm run lint From 7dcd3eb9a0b12e1b6c7465e5a05dd1518916d19a Mon Sep 17 00:00:00 2001 From: camarm Date: Sat, 16 Dec 2023 16:45:40 +0100 Subject: [PATCH 3/4] Update eslint.yml --- .github/workflows/eslint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 97fa2ae1..db206c65 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -32,7 +32,7 @@ jobs: run: cd app - name: Setup Environnement - run: cd app npm install + run: npm install - name: Run ESLint run: npm run lint From 4e77179acdb61902ee86afd36ad90664f9291ad8 Mon Sep 17 00:00:00 2001 From: camarm Date: Sat, 16 Dec 2023 16:47:27 +0100 Subject: [PATCH 4/4] Update eslint.yml --- .github/workflows/eslint.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index db206c65..aace1ad2 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -28,11 +28,8 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Go to app directory - run: cd app - - name: Setup Environnement - run: npm install + run: cd app && npm install - name: Run ESLint - run: npm run lint + run: cd app && npm run lint