Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to run Symfony 7, and update function signatures to match Symfony's requirements. #25

Merged
merged 4 commits into from
Apr 23, 2024
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
22 changes: 10 additions & 12 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ jobs:
include:
- os: "ubuntu-latest"
php: "8.0"
env: 'HIGHEST_LOWEST="update --prefer-lowest"'
coverage: "none"
- os: "ubuntu-latest"
php: "8.1"
env: 'HIGHEST_LOWEST="update"'
coverage: "none"
- os: "ubuntu-latest"
php: "8.2"
coverage: "pcov"
- os: "ubuntu-latest"
php: "8.3"
coverage: "pcov"

steps:
Expand All @@ -37,17 +41,11 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Un-pin PHP version used for dependency resolution
run: composer config --unset platform.php

- name: Install dependencies
run: composer -n ${HIGHEST_LOWEST-install} --prefer-dist -o
- name: Install dependencies; use "update" so that we can get the right dependencies for our php version
run: composer -n update --prefer-dist -o

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"config": {
"platform": {
"php": "8.0.2"
"php": "8.2.18"
}
}
}
Loading
Loading