diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/php.yml | 17 |
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 |