Skip to content

Commit

Permalink
Revert "Temporarily change to run JavaScript Linting with a clean ins…
Browse files Browse the repository at this point in the history
…tallation of npm packages."

This reverts commit 1fdeea8.
  • Loading branch information
eason9487 committed Feb 7, 2024
1 parent 7a0afad commit 07b3935
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/js-css-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 07b3935

Please sign in to comment.