Skip to content

Update PHP and JS dependencies. #10

Update PHP and JS dependencies.

Update PHP and JS dependencies. #10

Workflow file for this run

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