-
Notifications
You must be signed in to change notification settings - Fork 45
67 lines (57 loc) · 1.73 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
name: Static linting
runs-on: ubuntu-24.04
env:
CLICOLOR_FORCE: "1"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
clean: false
show-progress: false
- name: Setup 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'
- name: Install prerequisites
run: |
set -ex
packages=(
clang-tidy
cppcheck
jq
libfreetype-dev
libfribidi-dev
libharfbuzz-dev
libjpeg-turbo8-dev
libpng-dev
libunibreak-dev
libutf8proc-dev
libwebp-dev
libxml2-utils
libzstd-dev
)
sudo apt-get update && sudo apt-get install --no-install-recommends "${packages[@]}"
# We need a more recent version of libunibreak for `lb_get_char_class` support.
wget http://ftp.debian.org/debian/pool/main/libu/libunibreak/libunibreak{6,-dev}_6.1-2_amd64.deb
sudo dpkg -i *.deb
# Install stylelint.
npm init --yes
npm install stylelint stylelint-config-standard
- name: Setup problem matchers
run: |
set -x
echo '::remove-matcher owner=eslint-compact::'
echo '::remove-matcher owner=eslint-stylish::'
echo '::remove-matcher owner=tsc::'
echo '::add-matcher::.github/problem-matchers.json'
- name: Lint
run: ./utils/lint.sh 2>&1