Skip to content

Commit

Permalink
Fix composer.json for PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Mar 23, 2024
1 parent 21b13de commit 4f1119f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/diagnostics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ jobs:
fail-fast: false
matrix:
include:
- php: '7.4'
phpcq_install: 'install'
phpcq_flags: ''
composer_install: 'update --prefer-lowest'
- php: '7.4'
phpcq_install: 'update'
phpcq_flags: ''
composer_install: 'update'
- php: '8.0'
phpcq_install: 'update'
phpcq_flags: ''
composer_install: 'update'
- php: '8.1'
phpcq_install: 'update'
phpcq_flags: ''
Expand All @@ -37,7 +25,7 @@ jobs:

steps:
- name: PHP ${{ matrix.php }} Pull source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -48,15 +36,15 @@ jobs:
php-version: ${{ matrix.php }}

- name: PHP ${{ matrix.php }} Cache composer cache directory
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: composer-cache-dir-${{ matrix.php }}
with:
path: ~/.cache/composer
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: PHP ${{ matrix.php }} Cache vendor directory
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: composer-vendor-${{ matrix.php }}
with:
Expand All @@ -78,7 +66,7 @@ jobs:
run: ./vendor/bin/phpcq run -v -o github-action -o default ${{ matrix.phpcq_flags }}

- name: PHP ${{ matrix.php }} Upload build directory to artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: ${{ success() }} || ${{ failure() }}
with:
name: phpcq-builds-php-${{ matrix.php }}
Expand Down
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
"source": "https://github.com/cyberspectrum/i18n-bundle"
},
"require": {
"php": "^7.4 || ^8.0",
"cyberspectrum/i18n": "dev-fix/phpcq-2 as 1.0.0@dev",
"psr/log": "^1.1.4 || ^2.0 || ^3.0",
"symfony/config": "^4.4 || ^5.4 || ^6.0",
"symfony/console": "^4.4 || ^5.4 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0",
"symfony/http-kernel": "^4.4 || ^5.4 || ^6.0",
"symfony/yaml": "^4.4 || ^5.4 || ^6.0"
"php": "^8.1",
"cyberspectrum/i18n": "^1.1@dev",
"psr/log": "^3.0",
"symfony/config": "^5.4 || ^6.0",
"symfony/console": "^5.4 || ^6.0",
"symfony/dependency-injection": "^5.4 || ^6.0",
"symfony/http-kernel": "^5.4 || ^6.0",
"symfony/yaml": "^5.4 || ^6.0"
},
"require-dev": {
"cyberspectrum/i18n-xliff": "dev-fix/phpcq-2 as 1.0.0@dev",
"cyberspectrum/i18n-xliff": "^1.1@dev",
"phpcq/runner-bootstrap": "^1.0@dev"
},
"suggest": {
Expand All @@ -51,7 +51,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
"dev-fix/phpcq-2": "1.1.x-dev"
}
}
}

0 comments on commit 4f1119f

Please sign in to comment.