-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (39 loc) · 1.03 KB
/
run-workflow.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
41
42
43
44
45
46
name: Run Checks
on:
- push
- pull_request
- fork
jobs:
run-checks:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
experimental: [false]
steps:
- uses: actions/checkout@v3
- name: Validate Composer Files
run: composer validate --strict
- name: Run composer install
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
- name: Run linter
run: composer lint
- name: Run phpstan
uses: php-actions/phpstan@v3
with:
php_version: ${{ matrix.php-version }}
version: latest
configuration: phpstan.neon
memory_limit: 256M
- name: Run tests
uses: php-actions/phpunit@v3
with:
php_version: ${{ matrix.php-version }}
version: 9
configuration: phpunit.xml