@@ -5,128 +5,90 @@ on: [push, pull_request]
5
5
jobs :
6
6
lint :
7
7
name : Source code linting
8
- runs-on : ubuntu-latest
8
+ runs-on : ubuntu-24.04
9
+ strategy :
10
+ max-parallel : 2
11
+ matrix :
12
+ php-versions : ['8.2']
9
13
steps :
10
- -
14
+ - name : " Checkout "
11
15
uses : actions/checkout@v4
12
16
13
- -
14
- name : Set up Docker Compose
15
- run : |
16
- docker-compose --version || {
17
- echo "Docker Compose not found, installing..."
18
- sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
19
- sudo chmod +x /usr/local/bin/docker-compose
20
- docker-compose --version
21
- }
22
-
23
- -
24
- name : Validate composer.json
25
- run : Build/Scripts/runTests.sh -s composerValidate
26
-
27
- -
28
- name : Cache composer dependencies
17
+ - name : Validate composer.json
18
+ run : Build/Scripts/runTests.sh -s composer validate
19
+
20
+ - name : Cache dependencies installed with composer
29
21
uses : actions/cache@v4
30
22
with :
31
- path : ~/.composer/cache
32
- key : composer
23
+ key : " php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
24
+ path : .cache/composer
25
+ restore-keys : " php${{ matrix.php-version }}-composer-\n "
33
26
34
- -
35
- name : Install composer dependencies
36
- run : Build/Scripts/runTests.sh -s composerInstall
27
+ - name : Install composer dependencies
28
+ run : Build/Scripts/runTests.sh -s composer install
37
29
38
- -
39
- name : PHP Linting
30
+ - name : PHP Linting
40
31
run : Build/Scripts/runTests.sh -s lintPhp
41
32
42
- -
43
- name : Editorconfig Linting
33
+ - name : Editorconfig Linting
44
34
run : Build/Scripts/runTests.sh -s lintEditorconfig
45
35
46
36
47
37
unittest :
48
- runs-on : ubuntu-latest
49
-
38
+ runs-on : ubuntu-24.04
50
39
strategy :
51
40
max-parallel : 2
52
41
matrix :
53
- php-versions : ['8.3 ', '8.2 ']
54
- typo3-versions : [13, 12 ]
42
+ php-versions : ['8.2 ', '8.3 ']
43
+ typo3-versions : ['13.2', '12.4' ]
55
44
56
- name : Unit (PHP ${{ matrix.php-versions }}, TYPO3 ${{ matrix.typo3-versions }})
45
+ name : Unit Testing (PHP ${{ matrix.php-versions }}, TYPO3 ${{ matrix.typo3-versions }})
57
46
steps :
58
- -
47
+ - name : " Checkout "
59
48
uses : actions/checkout@v4
60
49
61
- -
62
- name : Set up Docker Compose
63
- run : |
64
- docker-compose --version || {
65
- echo "Docker Compose not found, installing..."
66
- sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
67
- sudo chmod +x /usr/local/bin/docker-compose
68
- docker-compose --version
69
- }
70
-
71
- -
72
- name : Validate composer.json
73
- run : Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerValidate
74
-
75
- -
76
- name : Cache composer dependencies
50
+ - name : Validate composer.json
51
+ run : Build/Scripts/runTests.sh -s composer validate
52
+
53
+ - name : Cache dependencies installed with composer
77
54
uses : actions/cache@v4
78
55
with :
79
- path : ~/.composer/cache
80
- key : php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}
56
+ key : " php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
57
+ path : .cache/composer
58
+ restore-keys : " php${{ matrix.php-version }}-composer-\n "
81
59
82
- -
83
- name : Install composer dependencies
84
- run : Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerInstall
60
+ - name : Install composer dependencies
61
+ run : Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerUpdateMin
85
62
86
- -
87
- name : Automated Unit Testing
88
- run : Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s unit
63
+ - name : Automated Unit Testing
64
+ run : Build/Scripts/runTests.sh -s unit
89
65
90
66
91
- functionaltest :
92
- runs-on : ubuntu-latest
93
-
67
+ functional :
68
+ runs-on : ubuntu-24.04
94
69
strategy :
95
70
max-parallel : 2
96
71
matrix :
97
- php-versions : ['8.3 ', '8.2 ']
98
- typo3-versions : [13, 12 ]
72
+ php-versions : ['8.2 ', '8.3 ']
73
+ typo3-versions : ['13.2', '12.4' ]
99
74
100
- name : Functional (PHP ${{ matrix.php-versions }}, TYPO3 ${{ matrix.typo3-versions }})
75
+ name : Functional Testing (PHP ${{ matrix.php-versions }}, TYPO3 ${{ matrix.typo3-versions }})
101
76
steps :
102
- -
77
+ - name : " Checkout "
103
78
uses : actions/checkout@v4
104
79
105
- -
106
- name : Set up Docker Compose
107
- run : |
108
- docker-compose --version || {
109
- echo "Docker Compose not found, installing..."
110
- sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
111
- sudo chmod +x /usr/local/bin/docker-compose
112
- docker-compose --version
113
- }
114
-
115
- -
116
- name : Validate composer.json
117
- run : Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerValidate
118
-
119
- -
120
- name : Cache composer dependencies
80
+ - name : Validate composer.json
81
+ run : Build/Scripts/runTests.sh -s composer validate
82
+
83
+ - name : Cache dependencies installed with composer
121
84
uses : actions/cache@v4
122
85
with :
123
- path : ~/.composer/cache
124
- key : php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}
86
+ key : " php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
87
+ path : .cache/composer
88
+ restore-keys : " php${{ matrix.php-version }}-composer-\n "
125
89
126
- -
127
- name : Install composer dependencies
128
- run : Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerInstall
90
+ - name : Install composer dependencies
91
+ run : Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerUpdateMin
129
92
130
- -
131
- name : Automated Functional Testing
132
- run : Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s functional
93
+ - name : Automated Unit Testing
94
+ run : Build/Scripts/runTests.sh -s functional
0 commit comments