Skip to content

Merge pull request #1202 from Automattic/dependabot/github_actions/ac… #34

Merge pull request #1202 from Automattic/dependabot/github_actions/ac…

Merge pull request #1202 from Automattic/dependabot/github_actions/ac… #34

Workflow file for this run

name: Run JS linting
on:
pull_request:
paths:
- '**.js'
- '**.jsx'
- '**.css'
- '**.scss'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/lint.yml'
push:
branches:
- develop
- main
paths:
- '**.js'
- '**.jsx'
- '**.css'
- '**.scss'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/lint.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
name: Run JS linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run ESLint on JS files
run: npm run lint:js
continue-on-error: true
- name: Run Stylelint on CSS files
run: npm run lint:css
continue-on-error: true