Skip to content

Commit

Permalink
build: improve build and static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Nov 9, 2021
1 parent 24a13a1 commit a9ccd01
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 71 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- uses: php-actions/composer@v5
- uses: php-actions/composer@v6

- name: Archive build
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./
Expand All @@ -40,7 +40,7 @@ jobs:
run: tar -xvf /tmp/github-actions/build.tar ./

- name: PHP Unit tests
uses: php-actions/phpunit@v2
uses: php-actions/phpunit@v3
with:
php_version: 8.0
php_extensions: xdebug
Expand All @@ -61,6 +61,7 @@ jobs:
run: tar -xvf /tmp/github-actions/build.tar ./

- name: PHP Static Analysis
uses: php-actions/phpstan@v2
uses: php-actions/phpstan@v3
with:
path: src/
level: 6
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"require": {
"php": ">=8.0",
"phpgt/typesafegetter": "^1.2.2",
"phpgt/config": "^v1.1.0",
"phpgt/http": "^v1",
"phpgt/config": "^1.1.0",
"phpgt/http": "^1",
"phpgt/servicecontainer": "1.*",
"psr/http-message": "1.*",

"willdurand/negotiation": "^3.0"
},

"require-dev": {
"phpunit/phpunit": ">=9.3.8",
"phpstan/phpstan": ">=0.12.82"
"phpunit/phpunit": "~9.5",
"phpstan/phpstan": "~1.1"
},

"license": "MIT",
Expand Down
Loading

0 comments on commit a9ccd01

Please sign in to comment.