-
Notifications
You must be signed in to change notification settings - Fork 1k
46 lines (45 loc) · 1.08 KB
/
style.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
name: Coding Style
on:
push:
branches:
- master
pull_request:
jobs:
php_cs_fixer:
name: php_cs_fixer
runs-on: "ubuntu-latest"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- name: Install Dependencies
run: composer install --no-progress
- name: Run PHP-CS-Fixer
run: composer cs-fix
php_stan:
name: php_stan-php${{ matrix.php-version }}
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php-version:
- 8.1
- 8.2
- 8.3
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install Dependencies
run: composer install --no-progress
- name: Run PHP-Stan
run: composer analyse