File tree Expand file tree Collapse file tree 4 files changed +54
-864
lines changed Expand file tree Collapse file tree 4 files changed +54
-864
lines changed Original file line number Diff line number Diff line change 1+ name : Run code style checks
2+
3+ on :
4+ push :
5+ branches : [PHP-8.4]
6+ pull_request :
7+ branches : [PHP-8.4]
8+
9+ jobs :
10+ check :
11+ name : Check code style
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 2
18+
19+ - name : Install CMake
20+ uses : lukka/get-cmake@latest
21+
22+ - name : Install PHP
23+ uses : shivammathur/setup-php@v2
24+ with :
25+ php-version : 8.4
26+
27+ - name : Install Python
28+ uses : actions/setup-python@v5
29+
30+ - name : Install checking tools
31+ run : |
32+ pipx install codespell
33+ curl -OL https://github.com/petk/normalizator/releases/latest/download/normalizator.phar
34+ chmod +x normalizator.phar
35+ mv normalizator.phar /usr/local/bin/normalizator
36+ curl -OL https://github.com/petk/cmake-normalizer/releases/latest/download/normalizer.cmake
37+ chmod +x normalizer.cmake
38+ mv normalizer.cmake /usr/local/bin/normalizer.cmake
39+
40+ - name : Run Codespell
41+ continue-on-error : true
42+ run : codespell
43+
44+ - name : Run normalizator.phar
45+ continue-on-error : true
46+ run : normalizator check --not php-src --not .git .
47+
48+ - name : Run normalizer.cmake
49+ continue-on-error : true
50+ run : |
51+ normalizer.cmake -- \
52+ --set normalize_indent_style=false \
53+ --set normalize_cmake_minimum_required=3.25...3.31 \
54+ -j
You can’t perform that action at this time.
0 commit comments