@@ -4,18 +4,17 @@ on: push
44
55jobs :
66 php-tests :
7-
87 strategy :
98 matrix :
10- php : [ '7.1', '7.2', '7.3', '7.4', ' 8.0', ' 8.1', ' 8.2' ]
11- prefer : [ ' lowest', ' stable' ]
9+ php : ["7.4", " 8.0", " 8.1", " 8.2", "8.3" ]
10+ prefer : [" lowest", " stable" ]
1211
1312 name : Test on PHP ${{ matrix.php }} with ${{ matrix.prefer }} composer prefer option
1413 runs-on : ubuntu-latest
1514
1615 steps :
1716 - name : Checkout Code
18- uses : actions/checkout@v2
17+ uses : actions/checkout@v4
1918
2019 - name : Install PHP
2120 uses : shivammathur/setup-php@v2
2726
2827 - name : Cache Composer packages
2928 id : composer-cache
30- uses : actions/cache@v2
29+ uses : actions/cache@v4
3130 with :
3231 path : vendor
3332 key : ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.prefer }}-
@@ -46,20 +45,30 @@ jobs:
4645 runs-on : ubuntu-latest
4746
4847 steps :
48+ # Master branch should be available for the linter
49+ - name : Checkout Code
50+ uses : actions/checkout@v4
51+ with :
52+ ref : master
53+
4954 - name : Checkout Code
50- uses : actions/checkout@v2
55+ uses : actions/checkout@v4
5156
5257 - name : Install PHP
5358 uses : shivammathur/setup-php@v2
5459 with :
55- php-version : 7.1
60+ php-version : 7.4
5661
5762 - name : Install dependencies
5863 run : composer update --prefer-stable --prefer-dist --no-progress
5964
6065 - name : Lint Code
61- uses : github /super-linter@v4
66+ uses : super-linter /super-linter@v7
6267 env :
6368 FILTER_REGEX_EXCLUDE : .*vendor.*
6469 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70+ VALIDATE_CHECKOV : false
71+ VALIDATE_JSCPD : false
6572 VALIDATE_PHP_PSALM : false
73+ VALIDATE_PHP_PHPSTAN : false # temporary disabled until superlinter supports phpstan 2
74+ VALIDATE_YAML_PRETTIER : false
0 commit comments