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
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ permissions:
jobs:
php-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
http-client: ['^7.0', '^8.0']
steps:
# To automatically get bug fixes and new Php versions for shivammathur/setup-php,
# change this to (see https://github.com/shivammathur/setup-php#bookmark-versioning):
Expand All @@ -30,10 +34,10 @@ jobs:
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.http-client }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-php-${{ matrix.http-client }}-
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
run: composer update -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --with "symfony/http-client:${{ matrix.http-client }}"
- name: Execute tests
run: composer run test
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"php": "^8.4",
"einenlum/composer-version-parser": "^1.0",
"knplabs/github-api": "^3.12",
"symfony/http-client": "^7.0",
"symfony/http-client": "^7.0|^8.0",
"nyholm/psr7": "^1.8"
},
"scripts": {
Expand Down
Loading