forked from solana-labs/ledger-app-solana
-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (42 loc) · 1.06 KB
/
lint-workflow.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
name: Code style check
on:
workflow_dispatch:
push:
branches:
- master
- develop
pull_request:
jobs:
job_lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- name: Lint src
uses: DoozyX/[email protected]
with:
source: './src'
extensions: 'h,c'
clangFormatVersion: 12.0.0
- name: Lint libsol
uses: DoozyX/[email protected]
with:
source: './libsol'
extensions: 'h,c'
clangFormatVersion: 12.0.0
misspell:
name: Check misspellings
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check misspellings
uses: codespell-project/actions-codespell@2391250ab05295bddd51e36a8c6295edb6343b0e
with:
# Use Config file when the github action supports it
builtin: clear,rare
check_filenames: true
skip: ./libsol/printer_test.c,./tests/Cargo.lock