@@ -61,23 +61,19 @@ jobs:
6161 run : composer install --prefer-dist --no-progress --no-suggest
6262
6363 - name : Coding Guideline
64- run : .build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --using-cache=no --path-mode=intersection ./
64+ run : composer project:cgl
6565
6666 code-quality :
6767 runs-on : ubuntu-latest
6868 needs :
6969 - php-linting
7070 strategy :
7171 matrix :
72- include :
73- - php-version : ' 8.2'
74- typo3-version : ' ^14.1'
75- - php-version : ' 8.3'
76- typo3-version : ' ^14.1'
77- - php-version : ' 8.4'
78- typo3-version : ' ^14.1'
79- - php-version : ' 8.5'
80- typo3-version : ' ^14.1'
72+ php-version :
73+ - 8.2
74+ - 8.3
75+ - 8.4
76+ - 8.5
8177 steps :
8278 - uses : actions/checkout@v4
8379
@@ -89,54 +85,50 @@ jobs:
8985
9086 - name : Install dependencies with expected TYPO3 version
9187 run : |-
92- composer require --no-interaction --prefer-dist --no-progress "typo3/cms-core:${{ matrix.typo3-version }}" "typo3/cms-extbase:${{ matrix.typo3-version }}" "typo3/cms-frontend:${{ matrix.typo3-version }}"
88+ composer remove --dev ssch/typo3-rector \
89+ && composer require typo3/cms-install "*" \
90+ && composer install --no-progress --no-ansi --no-interaction
9391
9492 - name : Build codeception tester
9593 run : .build/bin/codecept build
9694
9795 - name : Code Quality (by PHPStan)
98- run : .build/bin/phpstan analyse -c Build/ phpstan.neon
96+ run : composer project: phpstan
9997
100- test -unit-and-functional :
98+ tests -unit-and-functional :
10199 runs-on : ubuntu-latest
102100 needs :
103101 - coding-guideline
104102 - code-quality
103+ strategy :
104+ matrix :
105+ php-version :
106+ - 8.2
107+ - 8.3
108+ - 8.4
109+ - 8.5
105110 steps :
106- - uses : actions/checkout@v5
111+ - uses : actions/checkout@v4
107112
108- - uses : cachix/install-nix-action@v31
113+ - name : Install PHP
114+ uses : shivammathur/setup-php@v2
109115 with :
110- nix_path : nixpkgs=channel:nixos-unstable
111-
112- - name : Run Unit Tests PHP8.2
113- run : nix-shell --arg phpVersion \"php82\" --pure --run project-test-unit
114-
115- - name : Run Unit Tests PHP8.3
116- run : nix-shell --arg phpVersion \"php83\" --pure --run project-test-unit
117-
118- - name : Run Unit Tests PHP8.4
119- run : nix-shell --arg phpVersion \"php84\" --pure --run project-test-unit
120-
121- - name : Run Unit Tests PHP8.5
122- run : nix-shell --arg phpVersion \"php85\" --pure --run project-test-unit
123-
124- - name : Run Functional Tests PHP8.2
125- run : nix-shell --arg phpVersion \"php82\" --pure --run project-test-functional
116+ php-version : " ${{ matrix.php-version }}"
117+ tools : composer:v2
126118
127- - name : Run Functional Tests PHP8.3
128- run : nix-shell --arg phpVersion \"php83\" --pure --run project-test-functional
119+ - name : Install dependencies
120+ run : composer install --prefer-dist --no-progress --no-suggest
129121
130- - name : Run Functional Tests PHP8.4
131- run : nix-shell --arg phpVersion \"php84\" --pure --run project- test-functional
122+ - name : Run unit tests
123+ run : composer project: test:unit
132124
133- - name : Run Functional Tests PHP8.5
134- run : nix-shell --arg phpVersion \"php85\" --pure --run project- test- functional
125+ - name : Run functional tests
126+ run : export typo3DatabaseDriver=pdo_sqlite && composer project: test: functional
135127
136128 test-acceptance :
137129 runs-on : ubuntu-latest
138130 needs :
139- - test -unit-and-functional
131+ - tests -unit-and-functional
140132 steps :
141133 - uses : actions/checkout@v5
142134
0 commit comments