From 07b3935749450576b5073a09ebaa327bcd5a5b39 Mon Sep 17 00:00:00 2001 From: Eason Su Date: Wed, 7 Feb 2024 10:48:11 +0800 Subject: [PATCH] Revert "Temporarily change to run JavaScript Linting with a clean installation of npm packages." This reverts commit 1fdeea814bad308953737a0e4926672339a55ac7. --- .github/workflows/js-css-linting.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/js-css-linting.yml b/.github/workflows/js-css-linting.yml index b9f2956345..fde37633ee 100644 --- a/.github/workflows/js-css-linting.yml +++ b/.github/workflows/js-css-linting.yml @@ -34,12 +34,27 @@ jobs: uses: woocommerce/grow/prepare-node@actions-v1 with: node-version-file: ".nvmrc" - install-deps: "no" - name: Prepare annotation formatter uses: woocommerce/grow/eslint-annotation@actions-v1 - name: Lint JavaScript and annotate linting errors - run: | - npm ci --ignore-scripts --cache /tmp/npm-cache-test - npm run lint:js -- --quiet --format ./eslintFormatter.cjs + run: npm run lint:js -- --quiet --format ./eslintFormatter.cjs + + CSSLintingCheck: + name: Lint CSS + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Prepare node + uses: woocommerce/grow/prepare-node@actions-v1 + with: + node-version-file: ".nvmrc" + + - name: Prepare annotation formatter + uses: woocommerce/grow/stylelint-annotation@actions-v1 + + - name: Lint CSS and annotate linting errors + run: npm run lint:css -- --custom-formatter ./stylelintFormatter.cjs