Update PHP linting dependencies. #15
This file contains 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: CSS Code Linting | |
on: | |
push: | |
branches: | |
- main | |
# Only run if CSS/Lint/NVM files changed. | |
paths: | |
- '.github/workflows/css-lint.yml' | |
- '**.css' | |
- '**.scss' | |
- '.nvmrc' | |
- '**/package.json' | |
- 'package-lock.json' | |
pull_request: | |
branches: | |
- main | |
- 'feature/**' | |
# Only run if CSS/Lint/NVM files changed. | |
paths: | |
- '.github/workflows/css-lint.yml' | |
- '**.css' | |
- '**.scss' | |
- '.nvmrc' | |
- '**/package.json' | |
- 'package-lock.json' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
js-lint: | |
name: CSS Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: styfle/[email protected] | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js (via .nvmrc) | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
- name: npm install | |
run: npm ci | |
- name: CSS Lint | |
run: npm run lint-css |