Skip to content

Commit 706c643

Browse files
committed
Merge branch 'PHP-8.4'
2 parents e0954e1 + d0af2dd commit 706c643

File tree

6 files changed

+54
-917
lines changed

6 files changed

+54
-917
lines changed

.github/workflows/check-cmake.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/check.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Run code style checks
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
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

0 commit comments

Comments
 (0)