analyzeCss.js: lazy load analyze-css module via await import() #1202
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: Linters | |
on: | |
push: | |
branches: [ devel ] | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
cache: npm | |
- name: Install dependencies | |
env: | |
# Tell Puppeteer to skip installing Chrome, not really needed for linting | |
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true | |
run: npm ci | |
- name: Run prettier | |
run: npx prettier --check . | |
- name: Run eslint | |
run: npm run lint | |
- name: Run depcheck | |
run: npx depcheck |