-
Notifications
You must be signed in to change notification settings - Fork 2.1k
59 lines (49 loc) · 1.29 KB
/
lint-and-codestyle.yml
File metadata and controls
59 lines (49 loc) · 1.29 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Lint and Code Style
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
permissions:
contents: read
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-php-codestyle:
name: PHP Code Style
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ["8.3"]
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup PHP
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
with:
php-version: ${{ matrix.php-version }}
extensions: curl, gd, json, xml, zip
ini-values: "memory_limit=1024M"
tools: phpstan, codesniffer
- name: Install Composer dependencies
run: |
make install-composer-deps
make vendor-bin-deps
- name: Install Server
run: |
DATA_DIRECTORY=$(pwd)/data bash tests/drone/install-server.sh
- name: Run PHP Code Style Checks
run: |
make test-php-style
- name: Run PHP Stan
run: |
make test-php-phpstan
- name: Run PHP Phan
run: |
make test-php-phan