-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (74 loc) · 1.8 KB
/
Copy pathphp.yml
File metadata and controls
78 lines (74 loc) · 1.8 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: PHP Tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
info:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "8.5"
steps:
- name: OS info
run: cat /etc/os-release
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
extensions: gnupg
- name: PHP info
run: |
php -v
php -m
php --ri gnupg
lint-phpcs-phpstan-tester:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "8.5"
steps:
- uses: actions/checkout@v6
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
extensions: gnupg
- name: Validate composer.json
run: composer validate --strict --no-interaction
- name: Install dependencies
run: composer update --no-progress --no-interaction
- name: Run linter
run: composer lint
- name: Run PHPCS
run: composer phpcs
- name: Run PHPStan
run: composer phpstan
- name: Run Tester
run: composer tester
- name: Run Tester without extensions
run: composer tester-no-extensions
psalm:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "8.5"
steps:
- uses: actions/checkout@v6
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
extensions: gnupg
- name: Validate composer.json
run: composer validate --strict --no-interaction
- name: Install dependencies
run: composer update --no-progress --no-interaction
- name: Run Psalm
run: composer psalm