run tests also on windows #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- master | |
jobs: | |
ubuntu: | |
name: "Ubuntu PHP ${{ matrix.php }}${{ matrix.allow-failure && ' (allowing failures - php version not supported yet)' || '' }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup PHP ${{ matrix.php }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
ini-values: apc.enable_cli=1, opcache.enable=1, opcache.jit=tracing, opcache.jit_buffer_size=128M | |
env: | |
fail-fast: true | |
- name: "Run Tests" | |
run: | | |
php ./tests/run.php | |
continue-on-error: "${{ matrix.allow-failure == true }}" | |
windows: | |
name: "Windows PHP ${{ matrix.php }}${{ matrix.allow-failure && ' (allowing failures - php version not supported yet)' || '' }}" | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.0', '8.1', '8.2', '8.3'] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup PHP ${{ matrix.php }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: pdo_mysql, pdo_sqlite | |
ini-values: apc.enable_cli=1, opcache.enable=1, opcache.jit=tracing, opcache.jit_buffer_size=128M | |
env: | |
fail-fast: true | |
- name: "Run Tests" | |
run: | | |
php ./tests/run.php | |
continue-on-error: "${{ matrix.allow-failure == true }}" |