Skip to content

[CI] Add stylelint to help prevent typos in CSS (#556) #297

[CI] Add stylelint to help prevent typos in CSS (#556)

[CI] Add stylelint to help prevent typos in CSS (#556) #297

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
linux:
name: Static linting
runs-on: ubuntu-latest
steps:
- name: Install prerequisites
run: sudo apt-get update && sudo apt-get install clang-tidy cppcheck jq libxml2-utils
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Lint
run: .ci/script.sh
# NPM tests
- name: Uses Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
# No cache, there are complaints about lockfiles that we don't want otherwise. See <https://github.com/actions/setup-node/issues/928>.
# cache: 'npm'
- run: npm init --yes && npm install stylelint stylelint-config-standard
- name: Check CSS syntax (only epub.css, html5.css and fb2.css)
run: npx stylelint cr3gui/data/epub.css cr3gui/data/html5.css cr3gui/data/fb2.css