aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorVincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com>2020-05-18 09:51:39 +0200
committerGitHub <noreply@github.com>2020-05-18 09:51:39 +0200
commitaa6bfe02129d37b75d9684e1d7f89d39412f8d12 (patch)
tree24b9a2564e388a1cfa706407a6dd245d4d0fe49d /.github
parentceff73a9a7ab210034e5d8b0452d18135ce7137d (diff)
parente8b0993f7054299e61af1ab501aaca46285b0caa (diff)
downloadwcms-aa6bfe02129d37b75d9684e1d7f89d39412f8d12.tar.gz
wcms-aa6bfe02129d37b75d9684e1d7f89d39412f8d12.zip
Merge pull request #113 from vincent-peugnet/tests-multiple-os
Tests multiple os
Diffstat (limited to '.github')
-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