Skip to content

Commit a89e6c5

Browse files
committedJun 5, 2022
Run test with multiple php versions
1 parent cd626eb commit a89e6c5

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed
 

‎.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ indent_style = space
88
insert_final_newline = true
99
max_line_length = 120
1010
tab_width = 4
11+
12+
[{*.yml, *.yaml}]
13+
indent_size = 2
14+
tab_width = 2

‎.github/workflows/phpunit.yml

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
name: PHPUnit
22

3-
on: [push]
3+
on: [ push ]
44

55
jobs:
66
test:
7+
strategy:
8+
matrix:
9+
php-version:
10+
- '8.0'
11+
- '8.1'
712

813
runs-on: ubuntu-latest
914

1015
steps:
11-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v2
1217

13-
- name: Setup PHP
14-
uses: shivammathur/setup-php@v2
15-
with:
16-
php-version: '8.0'
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-version }}
1722

18-
- name: Install dependencies
19-
run: composer install --prefer-dist --no-progress --no-suggest
23+
- name: Install dependencies
24+
run: composer install --prefer-dist --no-progress --no-suggest
2025

21-
- name: Run tests
22-
run: composer run-script test
26+
- name: Run tests
27+
run: composer run-script test

0 commit comments

Comments
 (0)
Please sign in to comment.