Skip to content

Commit a74bfd3

Browse files
committed
ci: swtich to ramsey composer action with matrix
1 parent bde2e69 commit a74bfd3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/pipeline.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,23 @@ on: pull_request
44
jobs:
55
pipeline:
66
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
php: ['8.2', '8.3']
10+
dependencies: ['lowest', 'highest']
711
steps:
812
- name: Checkout
913
uses: actions/checkout@v4
1014

1115
- name: Setup PHP
1216
uses: shivammathur/setup-php@v2
1317
with:
14-
php-version: '8.2'
18+
php-version: ${{ matrix.php }}
1519

16-
- name: Cache Vendors
17-
uses: actions/cache@v4
18-
id: cache-vendors
20+
- name: Install Composer
21+
uses: "ramsey/composer-install@v3"
1922
with:
20-
path: vendor
21-
key: ${{ runner.os }}-vendor-${{ hashFiles('**/composer.lock') }}
23+
dependency-versions: "${{ matrix.dependencies }}"
2224

2325
- name: Composer Validation
2426
run: composer validate --strict

0 commit comments

Comments
 (0)