File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ permissions:
1515
1616jobs :
1717 testsuite :
18- runs-on : ubuntu-18 .04
18+ runs-on : ubuntu-22 .04
1919 strategy :
2020 fail-fast : false
2121 matrix :
22- php-version : ['7.4', '8.0', '8.1']
22+ php-version : ['7.4', '8.0', '8.1', '8.2' ]
2323 name : PHP ${{ matrix.php-version }}
2424
2525 steps :
3434
3535 - name : Composer install
3636 run : |
37- if [[ ${{ matrix.php-version }} == '8.1' ]]; then
38- composer update --ignore-platform-reqs
39- else
40- composer update
41- fi
37+ composer update
4238 composer run-script post-install-cmd --no-interaction
4339
4440 - name : Run PHPUnit
4945 DATABASE_TEST_URL : sqlite://./testdb.sqlite
5046
5147 coding-standard :
52- name : Coding Standard
53- runs-on : ubuntu-18 .04
48+ name : Coding Standard & Static Analysis
49+ runs-on : ubuntu-22 .04
5450
5551 steps :
5652 - uses : actions/checkout@v3
@@ -61,29 +57,14 @@ jobs:
6157 php-version : ' 7.4'
6258 extensions : mbstring, intl
6359 coverage : none
60+ tools : cs2pr, phpstan:1
6461
6562 - name : Composer install
6663 run : composer install
6764
6865 - name : Run PHP CodeSniffer
69- run : composer cs-check
70-
71- static-analysis :
72- name : Static Analysis
73- runs-on : ubuntu-18.04
74-
75- steps :
76- - uses : actions/checkout@v3
77-
78- - name : Setup PHP
79- uses : shivammathur/setup-php@v2
80- with :
81- php-version : ' 7.4'
82- extensions : mbstring, intl
83- coverage : none
84-
85- - name : Composer install
86- run : composer require --dev phpstan/phpstan:^1.0.0
66+ run : vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr
8767
8868 - name : Run phpstan
89- run : vendor/bin/phpstan
69+ if : always()
70+ run : phpstan
You can’t perform that action at this time.
0 commit comments