-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.51 KB
/
ci.yml
File metadata and controls
59 lines (48 loc) · 1.51 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: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
name: Tests
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php-version: ['8.5']
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, xdebug
tools: composer
- name: Display PHP version
run: php -v
- name: Install Dependencies
run: composer install --no-progress --no-suggest --prefer-dist
- name: Run PHP Coding Standards Fixer
run: vendor/bin/php-cs-fixer fix -v --dry-run --diff --config=php-cs-fixer.php
- name: Run PHPStan
run: vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=1G
# - name: Run PHPUnit
# run: XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml
# - name: Upload PHPUnit result report
# if: failure()
# uses: actions/upload-artifact@v4
# with:
# name: tests-testdox-php_${{ matrix.php-version }}.txt
# path: var/tests-testdox.txt
# - name: Upload Coverage Report
# uses: actions/upload-artifact@v4
# with:
# name: tests-coverage-php_${{ matrix.php-version }}.txt
# path: var/tests-coverage.txt