-
Notifications
You must be signed in to change notification settings - Fork 13
47 lines (42 loc) · 1.27 KB
/
ci.yml
File metadata and controls
47 lines (42 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
pull_request:
schedule:
- cron: '56 5 * * *'
jobs:
testsuite:
name: all tests
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.3', '8.5']
TYPO3: ['13', '14' ]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up PHP Version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Composer validate
run: composer validate
- name: Install composer dependencies TYPO3 14
if: matrix.TYPO3 == '14'
run: |
composer install --no-progress --no-interaction
- name: Install composer dependencies TYPO3 13
if: matrix.TYPO3 == '13'
run: |
composer require typo3/cms-core:^13.4 --no-progress --no-interaction --dev -W
- name: Phpstan
run: .Build/bin/phpstan analyze -c Build/phpstan.neon
- name: Phpcsfix
run: .Build/bin/php-cs-fixer fix --config=Build/php-cs-fixer.php --dry-run --stop-on-violation --using-cache=no
- name: Archive composer.lock
uses: actions/upload-artifact@v6
if: always()
with:
name: composer.lock-${{ matrix.php }}-${{ matrix.TYPO3 }}
path: composer.lock