Skip to content

Commit fd9f6ff

Browse files
committed
chore: Updates project dependencies and GitHub Actions workflows.
1 parent 7e31b54 commit fd9f6ff

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
env:
10+
PHP_VERSION: '8.3'
11+
12+
jobs:
13+
auto-review:
14+
name: Auto review
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v6
20+
21+
- name: Configure PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ env.PHP_VERSION }}
25+
26+
- name: Install dependencies
27+
run: composer update --no-progress --optimize-autoloader
28+
29+
- name: Run review
30+
run: composer review
31+
32+
tests:
33+
name: Tests
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v6
39+
40+
- name: Use PHP ${{ env.PHP_VERSION }}
41+
uses: shivammathur/setup-php@v2
42+
with:
43+
php-version: ${{ env.PHP_VERSION }}
44+
45+
- name: Install dependencies
46+
run: composer update --no-progress --optimize-autoloader
47+
48+
- name: Run tests
49+
run: composer tests

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@
4646
},
4747
"require-dev": {
4848
"phpmd/phpmd": "^2.15",
49-
"phpstan/phpstan": "^1.12",
50-
"phpunit/phpunit": "^11.5",
49+
"phpunit/phpunit": "^12.1",
50+
"phpstan/phpstan": "^2.1",
5151
"infection/infection": "^0.32",
52+
"tiny-blocks/collection": "^1.10",
5253
"squizlabs/php_codesniffer": "^3.11"
5354
},
5455
"scripts": {

phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ parameters:
77
- '#method#'
88
- '#expects#'
99
- '#should return#'
10+
- '#is used zero times#'
1011
- '#type mixed supplied#'
1112
- '#not specify its types#'
1213
- '#no value type specified#'

0 commit comments

Comments
 (0)