Skip to content

Commit eec39b0

Browse files
authored
Test Lower and Upper PHP Versions
PHP 7.1 is the lowest, PHP 7.4 is the higher. By testing both we should be eco-friendly and covering all what is new in PHP 7.4 but also all what is legacy in the lower bound.
1 parent ad4826e commit eec39b0

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ on:
66
branches: [ master ]
77
jobs:
88
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
12-
- uses: actions/checkout@v2
9+
runs-on: ${{ matrix.operating-system }}
10+
strategy:
11+
matrix:
12+
operating-system: [ubuntu-latest]
13+
php-versions: ['7.1', '7.4']
14+
15+
name: frictionlessdata/datapackage-php PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-system }}
16+
17+
steps:
18+
- uses: actions/checkout@v2
1319

1420
- name: Cache Composer dependencies
1521
uses: actions/cache@v2
@@ -19,31 +25,31 @@ jobs:
1925

2026
- uses: php-actions/composer@v6
2127
with:
22-
php_version: 7.1
28+
php_version: ${{ matrix.php-versions }}
2329
php_extensions: zip
2430
version: 2
2531

26-
- name: Validate composer.json & composer.lock
32+
- name: Validate composer.json & composer.lock for PHP ${{ matrix.php-versions }}
2733
uses: php-actions/composer@v6
2834
with:
29-
php_version: 7.1
35+
php_version: ${{ matrix.php-versions }}
3036
php_extensions: zip
3137
version: 2
3238
command: validate --strict
3339

34-
- name: Run Code Style Check
40+
- name: Run Code Style Check for PHP ${{ matrix.php-versions }}
3541
uses: php-actions/composer@v6
3642
with:
37-
php_version: 7.1
43+
php_version: ${{ matrix.php-versions }}
3844
php_extensions: zip
3945
version: 2
4046
dev: yes
4147
command: style-check
4248

43-
- name: Run Tests
49+
- name: Run Tests for PHP ${{ matrix.php-versions }}
4450
uses: php-actions/composer@v6
4551
with:
46-
php_version: 7.1
52+
php_version: ${{ matrix.php-versions }}
4753
php_extensions: zip
4854
dev: yes
4955
command: test

0 commit comments

Comments
 (0)