33name : " Tests"
44
55on :
6+ pull_request : null
67 push :
78 branches :
89 - " main"
9- pull_request : null
10+
11+ permissions :
12+ contents : " read"
1013
1114concurrency :
1215 group : " ${{ github.workflow }}-${{ github.ref }}"
1619
1720 byte_level :
1821 name : " Byte-level"
19- runs-on : " ubuntu-20 .04"
22+ runs-on : " ubuntu-22 .04"
2023 steps :
21- - name : " Checkout code "
24+ - name : " Checkout repository "
2225 uses : " actions/checkout@v3"
2326
2427 - name : " Check file permissions"
@@ -31,15 +34,15 @@ jobs:
3134
3235 syntax_errors :
3336 name : " Syntax errors"
34- runs-on : " ubuntu-20 .04"
37+ runs-on : " ubuntu-22 .04"
3538 steps :
3639 - name : " Set up PHP"
3740 uses : " shivammathur/setup-php@v2"
3841 with :
3942 php-version : " 8.0"
4043 coverage : " none"
4144
42- - name : " Checkout code "
45+ - name : " Checkout repository "
4346 uses : " actions/checkout@v3"
4447
4548 - name : " Install dependencies"
@@ -64,15 +67,15 @@ jobs:
6467 dependencies :
6568 - " lowest"
6669 - " highest"
67- runs-on : " ubuntu-20 .04"
70+ runs-on : " ubuntu-22 .04"
6871
6972 steps :
7073 - name : " Set up PHP"
7174 uses : " shivammathur/setup-php@v2"
7275 with :
7376 php-version : " ${{ matrix.php-version }}"
7477
75- - name : " Checkout code "
78+ - name : " Checkout repository "
7679 uses : " actions/checkout@v3"
7780
7881 - name : " Install dependencies"
8891 needs :
8992 - " byte_level"
9093 - " syntax_errors"
91- runs-on : " ubuntu-20 .04"
94+ runs-on : " ubuntu-22 .04"
9295
9396 steps :
9497 - name : " Set up PHP"
@@ -97,23 +100,23 @@ jobs:
97100 php-version : " 8.0"
98101 coverage : " none"
99102
100- - name : " Checkout code "
103+ - name : " Checkout repository "
101104 uses : " actions/checkout@v3"
102105
103106 - name : " Check JSON files"
104107 run : |
105108 find . -type f -name '*.json' | xargs -t -L 1 -- php -r 'json_decode(file_get_contents($argv[1]), null, 512, JSON_THROW_ON_ERROR);'
106109
107110 - name : " Validate Composer configuration"
108- run : " composer validate --strict"
111+ run : " composer validate --no-interaction -- strict"
109112
110113 - name : " Install dependencies"
111114 uses : " ramsey/composer-install@v2"
112115 with :
113116 dependency-versions : " highest"
114117
115118 - name : " Check PSR-4 mapping"
116- run : " composer dump-autoload --optimize --strict-psr"
119+ run : " composer dump-autoload --no-interaction -- optimize --strict-psr"
117120
118121 - name : " Perform static analysis"
119122 run : " composer exec -- phpstan analyze -c vendor/nunomaduro/larastan/extension.neon -l 5 src/ stubs/"
@@ -123,7 +126,7 @@ jobs:
123126 needs :
124127 - " byte_level"
125128 - " syntax_errors"
126- runs-on : " ubuntu-20 .04"
129+ runs-on : " ubuntu-22 .04"
127130
128131 steps :
129132 - name : " Set up PHP"
@@ -132,7 +135,7 @@ jobs:
132135 php-version : " 8.0"
133136 coverage : " none"
134137
135- - name : " Checkout code "
138+ - name : " Checkout repository "
136139 uses : " actions/checkout@v3"
137140
138141 - name : " Check EditorConfig configuration"
@@ -149,15 +152,20 @@ jobs:
149152 - name : " Check coding style"
150153 run : " composer exec -- phpcs -s src/ stubs/"
151154
155+ # Move TODO-s into GitHub issues!
156+ - name : " Search for TODO-s and FIXME-s"
157+ run : |
158+ ! git grep --extended-regexp --ignore-case '\b(TODO|FIXME)\b' -- ':/' ':!*/test\.yml'
159+
152160 exported_files :
153161 name : " Exported files"
154162 needs :
155163 - " byte_level"
156164 - " syntax_errors"
157- runs-on : " ubuntu-20 .04"
165+ runs-on : " ubuntu-22 .04"
158166
159167 steps :
160- - name : " Checkout code "
168+ - name : " Checkout repository "
161169 uses : " actions/checkout@v3"
162170
163171 - name : " Check exported files"
0 commit comments