forked from koreader/crengine
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (25 loc) · 893 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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