Skip to content

Commit 5716458

Browse files
committed
Lining only needs to happen once
1 parent 3c471d5 commit 5716458

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/lint.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,31 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
lowest: ['0', '1']
17-
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
13+
env:
14+
LOWEST: '0'
15+
PHP_VERSION: '8.3'
1816

1917
steps:
2018
- uses: actions/checkout@v2
2119

2220
- uses: shivammathur/setup-php@v2
2321
with:
24-
php-version: ${{ matrix.php-versions }}
22+
php-version: ${{ env.PHP_VERSION }}
2523

2624
- name: Cache Composer dependencies
2725
uses: actions/cache@v2
2826
with:
2927
path: /tmp/composer-cache
30-
key: ${{ runner.os }}-php${{ matrix.php-versions }}-lowest${{ matrix.lowest }}-{{ hashFiles('**/composer.lock') }}
28+
key: ${{ runner.os }}-php${{ env.PHP_VERSION }}-lowest${{ env.LOWEST }}-{{ hashFiles('**/composer.lock') }}
3129

3230
- name: Install dependencies
3331
uses: php-actions/composer@v5
3432
env:
35-
COMPOSER_PREFER_LOWEST: ${{ matrix.lowest }}
33+
COMPOSER_PREFER_LOWEST: ${{ env.LOWEST }}
3634
with:
3735
command: install
3836
args: --prefer-dist --no-progress --prefer-stable --no-suggest --verbose
39-
php_version: ${{ matrix.php-versions }}
37+
php_version: ${{ env.PHP_VERSION }}
4038
version: 1
4139

4240
- name: Run lint

0 commit comments

Comments
 (0)