Skip to content

Commit f1f2b32

Browse files
committed
- Reduced supported PHP versions from 8.1, 8.0, 7.4 to just 8.1 due to compatibility issues
- Removed unnecessary blank lines in the main.yml file for better readability - Renamed "Install PHP versions" to "Setup PHP" to make it more clear - Updated PHP installation script to include necessary extensions and use the PCOV coverage tool - Added blank lines to improve file formatting and organization
1 parent 9c31266 commit f1f2b32

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
operating-system: [ ubuntu-latest ]
23-
php-versions: [ '8.1','8.0','7.4' ]
23+
php-versions: [ '8.1' ]
2424
dependency-stability: [ 'prefer-stable' ]
2525

2626
laravel: [ '10.*' ]
@@ -36,19 +36,25 @@ jobs:
3636
uses: actions/setup-node@v3
3737
with:
3838
node-version: '19.x'
39+
3940
- name: Cache node_modules directory
4041
uses: actions/cache@v3
4142
id: node_modules-cache
4243
with:
4344
path: node_modules
4445
key: ${{ runner.OS }}-build-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}
46+
4547
- name: Install NPM packages
4648
if: steps.node_modules-cache.outputs.cache-hit != 'true'
4749
run: npm ci
48-
- name: Install PHP versions
50+
51+
- name: Setup PHP
4952
uses: shivammathur/setup-php@v2
5053
with:
51-
php-version: ${{ matrix.php-versions }}
54+
php-version: ${{ matrix.php }}
55+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
56+
coverage: pcov
57+
5258
- name: Get Composer Cache Directory 2
5359
id: composer-cache
5460
run: |
@@ -60,12 +66,14 @@ jobs:
6066
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
6167
restore-keys: |
6268
${{ runner.os }}-composer-
69+
6370
- name: Cache PHP dependencies
6471
uses: actions/cache@v3
6572
id: vendor-cache
6673
with:
6774
path: vendor
6875
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
76+
6977
- name: Install Laravel Dependencies
7078
run: |
7179
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update

0 commit comments

Comments
 (0)