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

Run CI tests in php 8.3 in CI #1344

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
36 changes: 8 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
symfony_version: ['5.4.*', '6.2.*', '6.3.*']
php: ['8.2', '8.3']
symfony_version: ['5.4.*', '6.4.*']
dependencies: ['--prefer-lowest', '--prefer-dist']
exclude:
- php: '7.4'
symfony_version: '6.2.*'
- php: '7.4'
symfony_version: '6.3.*'
- php: '8.0'
symfony_version: '6.2.*'
- php: '8.0'
symfony_version: '6.3.*'

name: PHP ${{ matrix.php }} unit tests on Sf ${{ matrix.symfony_version }}, deps=${{ matrix.dependencies }}

Expand All @@ -97,12 +88,11 @@ jobs:

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "composer_cache_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: $composer_cache_dir
key: composer-${{ matrix.php }}-${{ matrix.symfony_version }}-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
restore-keys: |
composer-${{ matrix.php }}-${{ matrix.symfony_version }}-${{ matrix.dependencies }}-
Expand All @@ -127,18 +117,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2'] # same as in the container
symfony_version: ['5.4.*', '6.2.*', '6.3.*']
php: ['8.2', '8.3'] # same as in the container
symfony_version: ['5.4.*', '6.4.*']
dependencies: ['--prefer-lowest', '--prefer-dist']
exclude:
- php: '7.4'
symfony_version: '6.2.*'
- php: '7.4'
symfony_version: '6.3.*'
- php: '8.0'
symfony_version: '6.2.*'
- php: '8.0'
symfony_version: '6.3.*'

name: PHP ${{ matrix.php }} functional tests on Sf ${{ matrix.symfony_version }}, deps=${{ matrix.dependencies }}

Expand All @@ -147,12 +128,11 @@ jobs:

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "composer_cache_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: $composer_cache_dir
key: composer-${{ matrix.php }}-${{ matrix.symfony_version }}-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
restore-keys: |
composer-${{ matrix.php }}-${{ matrix.symfony_version }}-${{ matrix.dependencies }}-
Expand Down
8 changes: 4 additions & 4 deletions bin/dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ set -e
while getopts "bustefdp" OPTION; do
case $OPTION in
b)
docker-compose pull -q && docker-compose build
docker compose pull -q && docker compose build
;;
u)
docker-compose up
docker compose up
;;
s)
docker-compose stop
docker compose stop
;;
e)
docker exec -it mqdev_dev_1 /bin/bash
Expand All @@ -21,7 +21,7 @@ while getopts "bustefdp" OPTION; do
./bin/php-cs-fixer fix
;;

d) docker-compose run --workdir="/mqdev" --rm dev php pkg/enqueue-bundle/Tests/Functional/app/console.php config:dump-reference enqueue -vvv
d) docker compose run --workdir="/mqdev" --rm dev php pkg/enqueue-bundle/Tests/Functional/app/console.php config:dump-reference enqueue -vvv
;;
\?)
echo "Invalid option: -$OPTARG" >&2
Expand Down
2 changes: 1 addition & 1 deletion bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -x
set -e

docker-compose run --workdir="/mqdev" --rm dev ./docker/bin/test.sh $@
docker compose run --workdir="/mqdev" --rm dev ./docker/bin/test.sh $@
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN set -x && \
mkdir -p $HOME/gearman && \
cd $HOME/gearman && \
git clone https://github.com/php/pecl-networking-gearman.git . && \
git checkout gearman-2.1.0 && \
git checkout gearman-2.1.2 && \
phpize && ./configure && make && make install && \
if [ ! -f /etc/php/${PHP_VERSION}/cli/conf.d/20-gearman.ini ]; then \
echo "extension=gearman.so" > /etc/php/${PHP_VERSION}/cli/conf.d/20-gearman.ini && \
Expand Down
2 changes: 1 addition & 1 deletion pkg/amqp-bunny/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/amqp-ext/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/amqp-lib/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/amqp-tools/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/async-command/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/async-event-dispatcher/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/dbal/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/dsn/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/enqueue-bundle/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/enqueue/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/fs/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/gearman/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/gps/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/job-queue/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/mongodb/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/monitoring/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/null/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/pheanstalk/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/rdkafka/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/redis/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/simple-client/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/sns/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/snsqs/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/sqs/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/stomp/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
2 changes: 1 addition & 1 deletion pkg/wamp/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.2', '8.3']

name: PHP ${{ matrix.php }} tests

Expand Down
Loading