-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 983 Bytes
/
check-cmake.yaml
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
name: Run code style checks
on:
push:
branches: [PHP-8.3]
pull_request:
branches: [PHP-8.3]
jobs:
check:
name: Check code style
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Python
uses: actions/setup-python@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: php-cs-fixer
- name: Install checking tools
run: |
pipx install codespell
pipx install gersemi
curl -OL https://github.com/petk/normalizator/releases/latest/download/normalizator.phar
chmod +x normalizator.phar
mv normalizator.phar /usr/local/bin/normalizator
- name: Run checks
run: ./bin/check-cmake.php cmake
- name: Run PHP CS Fixer
run: php-cs-fixer check --diff --rules=@Symfony,@PER-CS --using-cache=no -- bin