@@ -14,32 +14,32 @@ on: # yamllint disable-line rule:truthy
1414 workflow_dispatch :
1515
1616jobs :
17+ phplinter :
18+ name : ' PHP-Linter'
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ php-version : ['8.1', '8.2', '8.3', '8.4']
23+
24+ uses :
simplesamlphp/simplesamlphp-test-framework/.github/workflows/[email protected] 25+ with :
26+ php-version : ${{ matrix.php-version }}
27+
1728 linter :
18- name : Linter
19- runs-on : ['ubuntu-latest']
29+ name : ' Linter'
30+ strategy :
31+ fail-fast : false
2032
21- steps :
22- - uses : actions/checkout@v4
23- with :
24- fetch-depth : 0
25-
26- - name : Lint Code Base
27- uses : super-linter/super-linter/slim@v6
28- env :
29- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30- LINTER_RULES_PATH : ' tools/linters'
31- LOG_LEVEL : NOTICE
32- VALIDATE_ALL_CODEBASE : true
33- VALIDATE_CSS : true
34- VALIDATE_JAVASCRIPT_ES : true
35- VALIDATE_JSON : true
36- VALIDATE_PHP_BUILTIN : true
37- VALIDATE_YAML : true
38- VALIDATE_XML : true
39- VALIDATE_GITHUB_ACTIONS : true
33+ uses :
simplesamlphp/simplesamlphp-test-framework/.github/workflows/[email protected] 34+ with :
35+ enable_eslinter : true
36+ enable_jsonlinter : true
37+ enable_stylelinter : false
38+ enable_yamllinter : true
4039
4140 quality :
4241 name : Quality control
42+ needs : [unit-tests-linux]
4343 runs-on : [ubuntu-latest]
4444
4545 steps :
@@ -112,7 +112,9 @@ jobs:
112112
113113 security :
114114 name : Security checks
115+ needs : [unit-tests-linux]
115116 runs-on : [ubuntu-latest]
117+
116118 steps :
117119 - name : Setup PHP, with composer and extensions
118120 # https://github.com/shivammathur/setup-php
@@ -154,7 +156,8 @@ jobs:
154156 unit-tests-linux :
155157 name : " Unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}"
156158 runs-on : ${{ matrix.operating-system }}
157- needs : [linter, quality, security]
159+ needs : [phplinter, linter]
160+
158161 strategy :
159162 fail-fast : false
160163 matrix :
@@ -220,7 +223,7 @@ jobs:
220223 unit-tests-windows :
221224 name : " Unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}"
222225 runs-on : ${{ matrix.operating-system }}
223- needs : [linter, quality, security ]
226+ needs : [phplinter, linter ]
224227 strategy :
225228 fail-fast : true
226229 matrix :
0 commit comments