File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint and Format
2+
3+ on :
4+ push :
5+ branches : [ develop ]
6+ pull_request :
7+ branches : [ develop ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ lint :
12+ runs-on : ubuntu-latest
13+ name : Code Quality Check
14+
15+ steps :
16+ - uses : actions/checkout@v3
17+
18+ - name : Install dependencies
19+ run : |
20+ sudo apt-get update
21+ sudo apt-get install -y meson ninja-build pkg-config clang clang-tidy clang-format just
22+
23+ - name : Configure project
24+ run : meson setup .build
25+
26+ - name : Check code formatting
27+ run : |
28+ just format
29+ if [ -n "$(git diff --name-only)" ]; then
30+ echo "Code is not properly formatted. Please run 'just format' locally."
31+ git diff
32+ exit 1
33+ fi
34+
35+ - name : Run static analysis
36+ run : just lint
You can’t perform that action at this time.
0 commit comments