Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['8.2', '8.3']
php: ['8.2', '8.3', '8.4']
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
Expand All @@ -18,6 +18,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns

- name: Install Puppeteer
run: npm install puppeteer

Expand All @@ -36,7 +39,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: "${{ steps.determine-composer-cache-directory.outputs.dir }}"
key: "php-${{ matrix.php }}-composer-${{ matrix.dependency-version }}-${{ hashFiles('composer.lock') }}"
Expand All @@ -45,8 +48,8 @@ jobs:
- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist

- name: Run psalm
run: composer analyze -- --php-version=${{ matrix.php }}
- name: Run phpstan
run: composer analyze

- name: Start server
run: (php -S localhost:8000 -t ./tests/Server &) || /bin/true
Expand Down
5 changes: 5 additions & 0 deletions .phpactor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "/phpactor.schema.json",
"language_server_phpstan.enabled": false,
"language_server_php_cs_fixer.enabled": false
}
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "~8.2.0 || ~8.3.0",
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
"guzzlehttp/guzzle": "^7.8.0",
"jakeasmith/http_build_url": "^1.0.1",
"league/container": "^4.2",
Expand All @@ -27,15 +27,15 @@
"symfony/options-resolver": "^7.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.39",
"ergebnis/php-cs-fixer-config": "^6.11.0",
"ergebnis/composer-normalize": "^2.45",
"ergebnis/php-cs-fixer-config": "^6.45.0",
"http-interop/http-factory-guzzle": "^1.2",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^10.4.2",
"psr/http-message": "^1.1.0",
"roave/security-advisories": "dev-latest",
"slim/slim": "^4.12",
"spatie/browsershot": "^3.60.0",
"vimeo/psalm": "^5.16"
"spatie/browsershot": "^5.0"
},
"suggest": {
"spatie/browsershot": "Required to execute Javascript in spiders"
Expand Down Expand Up @@ -67,7 +67,7 @@
"composer normalize"
],
"analyze": [
"vendor/bin/psalm --no-cache"
"vendor/bin/phpstan"
],
"coding-standards": [
"mkdir -p .build/php-cs-fixer",
Expand Down
Loading