-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (35 loc) · 977 Bytes
/
ci.yml
File metadata and controls
44 lines (35 loc) · 977 Bytes
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
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Setup PHP with composer v2
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
tools: composer:v2
- name: Install dependencies
run: |
cp .env.ci .env
composer install --no-progress
- name: Run PHP linter
run: |
find . -type f -name '*.php' ! -path "./vendor/*" ! -path "./var/*" -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
- name: Verify PSR-4 namespace correctness
run: |
composer dumpautoload --optimize --strict-psr
- name: Check coding standards
run: |
composer cs
- name: Run static analysis
run: |
composer stan
- name: Run tests
run: |
composer tests