Skip to content

Commit 1e5d41f

Browse files
author
Mokhtar Tlili
committed
update workflow
1 parent a82ce81 commit 1e5d41f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/php.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PHP Composer
1+
name: Testing
22

33
on:
44
push:
@@ -12,11 +12,22 @@ permissions:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ ubuntu-latest, macos-latest, windows-latest ]
19+
php: [ '7.4', '8.0', '8.1' ]
1620

1721
steps:
1822
- uses: actions/checkout@v3
1923

24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
tools: composer
29+
coverage: pcov
30+
2031
- name: Validate composer.json and composer.lock
2132
run: composer validate --strict
2233

0 commit comments

Comments
 (0)