Merge pull request #529 from woocommerce/fix-woocommerce-10-4-compati… #212
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: JavaScript Linting | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| paths: | |
| - "**.js" | |
| - .github/workflows/js-linting.yml | |
| pull_request: | |
| paths: | |
| - "**.js" | |
| - .github/workflows/js-linting.yml | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_COLOR: 2 | |
| jobs: | |
| JSLintingCheck: | |
| name: Lint JavaScript | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Prepare node | |
| uses: woocommerce/grow/prepare-node@actions-v2 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - name: Prepare annotation formatter | |
| uses: woocommerce/grow/eslint-annotation@actions-v2 | |
| - name: Lint JavaScript and annotate linting errors | |
| run: npm run lint:js -- --quiet --format ./eslintFormatter.cjs |