-
-
Notifications
You must be signed in to change notification settings - Fork 57
35 lines (33 loc) · 969 Bytes
/
lint.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
name: "Lint"
on:
pull_request:
push:
jobs:
lint:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Install apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: shellcheck
# Update this whenever the package list changes.
version: 2022.10.16--22.13.50
- name: Lint bash scripts
run: ./bin/ci/lint
- name: Run clang-format on include/cpp
uses: jidicula/[email protected]
with:
clang-format-version: 16
check-path: include/cpp
- name: Run clang-format on src/cpp
uses: jidicula/[email protected]
with:
clang-format-version: 16
check-path: src/cpp
- name: Run clang-format on test/cpp
uses: jidicula/[email protected]
with:
clang-format-version: 16
check-path: test/cpp