-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (64 loc) · 2.29 KB
/
typo3-compatibility.yml
File metadata and controls
78 lines (64 loc) · 2.29 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: TYPO3 Compatibility
on:
push:
branches: [ master, develop, feature/** ]
pull_request:
branches: [ master, develop ]
jobs:
typo3-compatibility:
name: TYPO3 ${{ matrix.typo3-version }} Compatibility Check
runs-on: ubuntu-latest
strategy:
matrix:
typo3-version: ['^13.4']
php-version: ['8.3', '8.4']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP version ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, xml, intl, zip, json, iconv
tools: composer:v2
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies with TYPO3 ${{ matrix.typo3-version }}
run: |
composer require typo3/cms-core:${{ matrix.typo3-version }} typo3/cms-backend:${{ matrix.typo3-version }} --no-progress --prefer-dist
git checkout composer.json
- name: Run TYPO3 Rector compatibility check
run: |
composer install --no-progress --prefer-dist
composer lint:rector
extension-scanner:
name: TYPO3 Extension Scanner
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: mbstring, xml, intl, zip, json, iconv
tools: composer:v2
- name: Install TYPO3 core for scanner
run: |
composer require typo3/cms-core:^13.4 --no-progress --prefer-dist
git checkout composer.json
- name: Run Extension Scanner (if available)
run: |
if [ -f .build/bin/typo3 ]; then
.build/bin/typo3 extension:scanner scan
else
echo "Extension scanner not available, skipping..."
fi
continue-on-error: true