Skip to content

Commit

Permalink
Merge pull request #25 from greg-1-anderson/symfony-7-part-2
Browse files Browse the repository at this point in the history
Update tests to run Symfony 7, and update function signatures to match Symfony's requirements.
  • Loading branch information
grasmash authored Apr 23, 2024
2 parents a5af7c1 + 1946eba commit 09a8860
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 223 deletions.
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

0 comments on commit 09a8860

Please sign in to comment.