Skip to content

2597: Refactor ConnectMC with updated AccountCard #3410

2597: Refactor ConnectMC with updated AccountCard

2597: Refactor ConnectMC with updated AccountCard #3410

Workflow file for this run

name: JavaScript and CSS Linting
on:
push:
branches:
- trunk
- develop
paths:
- "**.js"
- "**.scss"
- .github/workflows/js-css-linting.yml
pull_request:
paths:
- "**.js"
- "**.scss"
- .github/workflows/js-css-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
CSSLintingCheck:
name: Lint CSS
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/stylelint-annotation@actions-v2
- name: Lint CSS and annotate linting errors
run: npm run lint:css -- --custom-formatter ./stylelintFormatter.cjs