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

CI: Run tests on PHP 8.3 #6746

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
ini-values: memory_limit=-1, date.timezone='UTC'
tools: phpcs

Expand All @@ -45,13 +45,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3']
mode: ['stable', 'experimental']
exclude:
- php: '8.1'
mode: 'experimental'
- php: '8.2'
mode: 'experimental'
- php: '8.3'
mode: 'experimental'

steps:
- name: Checkout
Expand Down Expand Up @@ -87,15 +87,15 @@ jobs:
if: matrix.mode == 'stable'
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi

- name: Composer install lowest versions of dependencies on PHP 8.0 in experimental mode
if: matrix.php == '8.0' && matrix.mode == 'experimental'
- name: Composer install lowest versions of dependencies on PHP 8.1 in experimental mode
if: matrix.php == '8.1' && matrix.mode == 'experimental'
run: composer update --prefer-lowest --no-interaction --no-progress --optimize-autoloader --ansi

- name: Test that failing test really fails
run: if php codecept run -c tests/data/claypit/ scenario FailedCept -vvv; then echo "Test hasn't failed"; false; fi;

# - name: Run tests without code coverage on PHP 8.0
# if: matrix.php == '8.0'
# - name: Run tests without code coverage on PHP 8.1
# if: matrix.php == '8.1'
# run: |
# php -S 127.0.0.1:8008 -t tests/data/app >/dev/null 2>&1 &
# php codecept build
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest]
php: ['8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3']

steps:
- name: Checkout
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests cli
if: matrix.php != '8.1'
if: matrix.php != '8.2'
run: php codecept run cli --skip-group coverage

- name: Run tests unit
Expand Down