@@ -79,23 +79,19 @@ jobs:
7979 run : composer install --prefer-dist --no-progress --no-suggest
8080
8181 - name : Coding Guideline
82- run : .build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --dry-run --using-cache=no --path-mode=intersection ./
82+ run : composer project:cgl
8383
8484 code-quality :
8585 runs-on : ubuntu-latest
8686 needs :
8787 - php-linting
8888 strategy :
8989 matrix :
90- include :
91- - php-version : ' 8.2'
92- typo3-version : ' ^14.1'
93- - php-version : ' 8.3'
94- typo3-version : ' ^14.1'
95- - php-version : ' 8.4'
96- typo3-version : ' ^14.1'
97- - php-version : ' 8.5'
98- typo3-version : ' ^14.1'
90+ php-version :
91+ - 8.2
92+ - 8.3
93+ - 8.4
94+ - 8.5
9995 steps :
10096 - uses : actions/checkout@v4
10197
@@ -112,41 +108,35 @@ jobs:
112108 && composer install --no-progress --no-ansi --no-interaction
113109
114110 - name : Code Quality (by PHPStan)
115- run : .build/bin/phpstan analyse -c Build/ phpstan.neon
111+ run : composer project: phpstan
116112
117113 tests-unit-and-functional :
118114 runs-on : ubuntu-latest
119115 needs :
120116 - coding-guideline
121117 - code-quality
118+ strategy :
119+ matrix :
120+ php-version :
121+ - 8.2
122+ - 8.3
123+ - 8.4
124+ - 8.5
122125 steps :
123- - uses : actions/checkout@v5
126+ - uses : actions/checkout@v4
124127
125- - uses : cachix/install-nix-action@v31
128+ - name : Install PHP
129+ uses : shivammathur/setup-php@v2
126130 with :
127- nix_path : nixpkgs=channel:nixos-unstable
128-
129- - name : Run Unit Tests PHP8.2
130- run : nix-shell --arg phpVersion \"php82\" --pure --run project-test-unit
131-
132- - name : Run Unit Tests PHP8.3
133- run : nix-shell --arg phpVersion \"php83\" --pure --run project-test-unit
134-
135- - name : Run Unit Tests PHP8.4
136- run : nix-shell --arg phpVersion \"php84\" --pure --run project-test-unit
137-
138- - name : Run Unit Tests PHP8.5
139- run : nix-shell --arg phpVersion \"php85\" --pure --run project-test-unit
140-
141- - name : Run Functional Tests PHP8.2
142- run : nix-shell --arg phpVersion \"php82\" --pure --run project-test-functional
131+ php-version : " ${{ matrix.php-version }}"
132+ tools : composer:v2
143133
144- - name : Run Functional Tests PHP8.3
145- run : nix-shell --arg phpVersion \"php83\" --pure --run project-test-functional
134+ - name : Install dependencies
135+ run : composer install --prefer-dist --no-progress --no-suggest
146136
147- - name : Run Functional Tests PHP8.4
148- run : nix-shell --arg phpVersion \"php84\" --pure --run project- test-functional
137+ - name : Run unit tests
138+ run : composer project: test:unit
149139
150- - name : Run Functional Tests PHP8.5
151- run : nix-shell --arg phpVersion \"php85\" --pure --run project- test- functional
140+ - name : Run functional tests
141+ run : export typo3DatabaseDriver=pdo_sqlite && composer project: test: functional
152142
0 commit comments