File tree 2 files changed +41
-1
lines changed
2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : CI
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - main
8
+ pull_request :
9
+ schedule :
10
+ - cron : ' 15 3 * * 1'
11
+ jobs :
12
+ php-lint :
13
+ name : " PHP linter"
14
+ runs-on : ubuntu-20.04
15
+ steps :
16
+ - name : " Checkout"
17
+ uses : actions/checkout@v2
18
+ - name : " Install PHP"
19
+ uses : shivammathur/setup-php@v2
20
+ with :
21
+ php-version : " ${{ matrix.php-version }}"
22
+ coverage : none
23
+ tools : composer:v2
24
+ - name : " Run PHP lint"
25
+ run : " composer ci:php:lint"
26
+ strategy :
27
+ fail-fast : false
28
+ matrix :
29
+ php-version :
30
+ - 8.0
Original file line number Diff line number Diff line change 10
10
"friendsoftypo3/headless" : " ^3.0"
11
11
},
12
12
"require-dev" : {
13
- "roave/security-advisories" : " dev-latest"
13
+ "roave/security-advisories" : " dev-latest" ,
14
+ "friendsofphp/php-cs-fixer" : " ^3.1"
14
15
},
15
16
"extra" : {
16
17
"typo3/cms" : {
17
18
"extension-key" : " headless_container_support"
18
19
}
19
20
},
21
+ "scripts" : {
22
+ "ci:php:lint" : " find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l"
23
+ },
20
24
"autoload" : {
21
25
"psr-4" : {
22
26
"Fanor51\\ HeadlesContainerSupport\\ " : " Classes/"
23
27
}
28
+ },
29
+ "config" : {
30
+ "allow-plugins" : {
31
+ "typo3/cms-composer-installers" : true ,
32
+ "typo3/class-alias-loader" : true
33
+ }
24
34
}
25
35
}
You can’t perform that action at this time.
0 commit comments