aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-05-10 16:22:55 +0200
committern-peugnet <n.peugnet@free.fr>2020-05-11 16:10:01 +0200
commitaee12a9f372d839cfbbf3005245b0d691cfdbb4b (patch)
tree893400623f8d0fa6df0aa276ec65a1a43f45307e /.github/workflows
parent6ab276cf38e20266862e97a7beffec562d35bef0 (diff)
downloadwcms-aee12a9f372d839cfbbf3005245b0d691cfdbb4b.tar.gz
wcms-aee12a9f372d839cfbbf3005245b0d691cfdbb4b.zip
tests: run tests over multiple OS
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/php.yml17
1 files changed, 12 insertions, 5 deletions
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
index 6172685..9cccc26 100644
--- a/.github/workflows/php.yml
+++ b/.github/workflows/php.yml
@@ -6,11 +6,17 @@ on:
jobs:
test-php:
- name: test (php ${{ matrix.php-versions }})
- runs-on: ubuntu-latest
+ name: test php ${{ matrix.php }} / ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
strategy:
matrix:
- php-versions: ['7.2', '7.3', '7.4']
+ os: [ubuntu-latest]
+ php: ['7.2', '7.3', '7.4']
+ include:
+ - os: windows-latest
+ php: '7.4'
+ - os: macos-latest
+ php: '7.4'
steps:
- name: Git checkout
uses: actions/checkout@v2
@@ -18,7 +24,8 @@ jobs:
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
- php-version: ${{ matrix.php-versions }}
+ php-version: ${{ matrix.php }}
+ extensions: mbstring
coverage: xdebug
- name: Validate composer.json and composer.lock
@@ -50,7 +57,7 @@ jobs:
with:
file: ./build/phpunit/cov.xml
flags: php
- name: php-${{ matrix.php-versions }}
+ name: php-${{ matrix.php }}-${{ matrix.os }}
lint:
name: lint