Skip to content

Commit

Permalink
[TASK] Add CI test for PHP 8.4
Browse files Browse the repository at this point in the history
Related: #611
  • Loading branch information
extcode committed Dec 11, 2024
1 parent d6112ae commit b51c719
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
php-version:
- 8.2
- 8.3
- 8.4
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -87,9 +88,11 @@ jobs:
matrix:
include:
- php-version: '8.2'
typo3-version: '^13.2'
typo3-version: '^13.4'
- php-version: '8.3'
typo3-version: '^13.2'
typo3-version: '^13.4'
- php-version: '8.4'
typo3-version: '^13.4'
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -126,9 +129,15 @@ jobs:
- name: Run Unit Tests PHP8.3
run: nix-shell --arg phpVersion \"php83\" --pure --run project-test-unit

- name: Run Unit Tests PHP8.4
run: nix-shell --arg phpVersion \"php84\" --pure --run project-test-unit

- name: Run Functional Tests PHP8.2
run: nix-shell --arg phpVersion \"php82\" --pure --run project-test-functional

- name: Run Functional Tests PHP8.3
run: nix-shell --arg phpVersion \"php83\" --pure --run project-test-functional

- name: Run Functional Tests PHP8.4
run: nix-shell --arg phpVersion \"php84\" --pure --run project-test-functional

20 changes: 16 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ lint:php83:
variables:
CONTAINER_IMAGE: php:8.3-alpine

lint:php83:
<<: *lint_php
variables:
CONTAINER_IMAGE: php:8.4-alpine

phpstan:analyse:
image: $CI_REGISTRY/containers/phpunit-with-php-8.2:main
stage: lint
Expand Down Expand Up @@ -94,19 +99,26 @@ phpstan:analyse:
- .build/bin/phpunit -c Build/UnitTests.xml
- typo3DatabaseDriver=pdo_sqlite .build/bin/phpunit -c Build/FunctionalTests.xml

# Build in PHP 8.2 and TYPO3 13.3
# Build in PHP 8.2 and TYPO3 13.4
test:php82:typo3_13:
<<: *test_php
variables:
CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.2:main
TYPO3_VERSION: ^13.3
TYPO3_VERSION: ^13.4

# Build in PHP 8.3 and TYPO3 13.2
# Build in PHP 8.3 and TYPO3 13.4
test:php83:typo3_13:
<<: *test_php
variables:
CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.3:main
TYPO3_VERSION: ^13.3
TYPO3_VERSION: ^13.4

# Build in PHP 8.3 and TYPO3 13.4
test:php84:typo3_13:
<<: *test_php
variables:
CONTAINER_IMAGE: $CI_REGISTRY/containers/phpunit-with-php-8.4:main
TYPO3_VERSION: ^13.4

documentation:
stage: documentation
Expand Down

0 comments on commit b51c719

Please sign in to comment.