-
Notifications
You must be signed in to change notification settings - Fork 85
38 lines (36 loc) · 833 Bytes
/
lint.yml
File metadata and controls
38 lines (36 loc) · 833 Bytes
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
name: Lint
on:
pull_request:
branches:
- main
- release/*
jobs:
spelling:
name: Spelling check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
curl -L https://git.io/misspell | sudo bash -s -- -b /bin
- name: Check spelling
run: |
misspell -error .
cpp:
name: CPP code lint
runs-on: ubuntu-latest
steps:
- name: Install clang-format-14
run: |
sudo apt-get update
sudo apt-get install -y clang-format-14
sudo ln -sf /usr/bin/clang-format-14 /usr/bin/clang-format
- name: Checkout
uses: actions/checkout@v2
- name: Echo clang-format version
run: |
clang-format --version
- name: Lint
run: |
make cpplint