Skip to content

Commit a9ccd01

Browse files
author
Greg Bowler
committed
build: improve build and static analysis
1 parent 24a13a1 commit a9ccd01

File tree

4 files changed

+76
-71
lines changed

4 files changed

+76
-71
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
path: /tmp/composer-cache
1616
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1717

18-
- uses: php-actions/composer@v5
18+
- uses: php-actions/composer@v6
1919

2020
- name: Archive build
2121
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./
@@ -40,7 +40,7 @@ jobs:
4040
run: tar -xvf /tmp/github-actions/build.tar ./
4141

4242
- name: PHP Unit tests
43-
uses: php-actions/phpunit@v2
43+
uses: php-actions/phpunit@v3
4444
with:
4545
php_version: 8.0
4646
php_extensions: xdebug
@@ -61,6 +61,7 @@ jobs:
6161
run: tar -xvf /tmp/github-actions/build.tar ./
6262

6363
- name: PHP Static Analysis
64-
uses: php-actions/phpstan@v2
64+
uses: php-actions/phpstan@v3
6565
with:
6666
path: src/
67+
level: 6

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
"require": {
77
"php": ">=8.0",
88
"phpgt/typesafegetter": "^1.2.2",
9-
"phpgt/config": "^v1.1.0",
10-
"phpgt/http": "^v1",
9+
"phpgt/config": "^1.1.0",
10+
"phpgt/http": "^1",
1111
"phpgt/servicecontainer": "1.*",
1212
"psr/http-message": "1.*",
1313

1414
"willdurand/negotiation": "^3.0"
1515
},
1616

1717
"require-dev": {
18-
"phpunit/phpunit": ">=9.3.8",
19-
"phpstan/phpstan": ">=0.12.82"
18+
"phpunit/phpunit": "~9.5",
19+
"phpstan/phpstan": "~1.1"
2020
},
2121

2222
"license": "MIT",

0 commit comments

Comments
 (0)