ci: add eslint and prettier check
[web/firmware-selector-openwrt-org.git] / .gitlab-ci.yml
1 include:
2 - local: '.gitlab/ci/prebuild.yml'
3 - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/main.yml
4
5 stages:
6 - pre-build
7 - test
8
9 check HTML, JS, CSS with eslint and prettier:
10 stage: pre-build
11 image: node
12 cache:
13 paths:
14 - node_modules/
15 script:
16 - yarn install
17 - yarn prettier --check www/
18 - yarn eslint www/
19
20 check HTML, CSS and SVG with html5validator:
21 stage: pre-build
22 image: cyb3rjak3/html5validator:latest
23 script:
24 - html5validator --root www --also-check-css --also-check-svg --show-warnings --log INFO