From 711999135ed3ad69be64eb14b9556b0d2fca2c74 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Tue, 14 Oct 2025 04:43:25 +0000 Subject: Fix the JavaScript Code Quality workflow file name. --- .github/workflows/javascipt-code-quality.yml | 60 --------------------------- .github/workflows/javascript-code-quality.yml | 60 +++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 60 deletions(-) delete mode 100644 .github/workflows/javascipt-code-quality.yml create mode 100644 .github/workflows/javascript-code-quality.yml diff --git a/.github/workflows/javascipt-code-quality.yml b/.github/workflows/javascipt-code-quality.yml deleted file mode 100644 index 531693250..000000000 --- a/.github/workflows/javascipt-code-quality.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: JavaScript Code Quality - -on: - pull_request: - paths: - - 'js/**.js' - - 'plugins/**.js' - - 'eslint.config.js' - - 'package.json' - - 'package-lock.json' - # Allow manual triggering - workflow_dispatch: - # Allow other workflows (e.g. Publish) to invoke this one. - workflow_call: - - -env: - fail-fast: true - - -permissions: - contents: read - - -jobs: - eslint: - name: ESLint - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v5 - - - name: Set up Node.js - uses: actions/setup-node@v5 - with: - node-version: lts/* - - - name: Restore Node.js dependencies cache - uses: actions/cache/restore@v4 - id: cache-restore - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - name: Install dependencies - if: steps.cache-restore.outputs.cache-hit != 'true' - run: npm install - - - name: Save Node.js dependencies cache - if: steps.cache-restore.outputs.cache-hit != 'true' - uses: actions/cache/save@v4 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} - - - name: Run ESLint - run: npx eslint js plugins diff --git a/.github/workflows/javascript-code-quality.yml b/.github/workflows/javascript-code-quality.yml new file mode 100644 index 000000000..531693250 --- /dev/null +++ b/.github/workflows/javascript-code-quality.yml @@ -0,0 +1,60 @@ +name: JavaScript Code Quality + +on: + pull_request: + paths: + - 'js/**.js' + - 'plugins/**.js' + - 'eslint.config.js' + - 'package.json' + - 'package-lock.json' + # Allow manual triggering + workflow_dispatch: + # Allow other workflows (e.g. Publish) to invoke this one. + workflow_call: + + +env: + fail-fast: true + + +permissions: + contents: read + + +jobs: + eslint: + name: ESLint + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v5 + + - name: Set up Node.js + uses: actions/setup-node@v5 + with: + node-version: lts/* + + - name: Restore Node.js dependencies cache + uses: actions/cache/restore@v4 + id: cache-restore + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + if: steps.cache-restore.outputs.cache-hit != 'true' + run: npm install + + - name: Save Node.js dependencies cache + if: steps.cache-restore.outputs.cache-hit != 'true' + uses: actions/cache/save@v4 + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} + + - name: Run ESLint + run: npx eslint js plugins -- cgit v1.2.3-54-g00ecf