File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ pull_request :
9+ branches :
10+ - main
11+
12+ jobs :
13+ tests :
14+ name : Tests
15+ timeout-minutes : 10
16+ runs-on : ${{ matrix.os }}
17+ strategy :
18+ matrix :
19+ os : [ubuntu-latest]
20+ php-version : ['8.5']
21+
22+ steps :
23+ - name : Check out repository
24+ uses : actions/checkout@v4
25+
26+ - name : Set up PHP ${{ matrix.php-version }}
27+ uses : shivammathur/setup-php@v2
28+ with :
29+ php-version : ${{ matrix.php-version }}
30+ extensions : mbstring, xdebug
31+ tools : composer
32+
33+ - name : Display PHP version
34+ run : php -v
35+
36+ - name : Install Dependencies
37+ run : composer install --no-progress --no-suggest --prefer-dist
38+
39+ - name : Run PHP Coding Standards Fixer
40+ run : vendor/bin/php-cs-fixer fix -v --dry-run --diff --config=php-cs-fixer.php
41+
42+ - name : Run PHPStan
43+ run : vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=1G
44+
45+ # - name: Run PHPUnit
46+ # run: XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml
47+
48+ # - name: Upload PHPUnit result report
49+ # if: failure()
50+ # uses: actions/upload-artifact@v4
51+ # with:
52+ # name: tests-testdox-php_${{ matrix.php-version }}.txt
53+ # path: var/tests-testdox.txt
54+
55+ # - name: Upload Coverage Report
56+ # uses: actions/upload-artifact@v4
57+ # with:
58+ # name: tests-coverage-php_${{ matrix.php-version }}.txt
59+ # path: var/tests-coverage.txt
You can’t perform that action at this time.
0 commit comments