1name: Windows Unit Tests 2 3on: [push, pull_request] 4 5jobs: 6 run: 7 name: PHP ${{ matrix.php-versions }} 8 runs-on: windows-latest 9 10 strategy: 11 matrix: 12 php-versions: ['7.2', '7.3', '7.4'] 13 fail-fast: false 14 15 steps: 16 - name: Checkout 17 uses: actions/checkout@v2 18 19 - name: Setup PHP 20 uses: shivammathur/setup-php@v2 21 with: 22 php-version: ${{ matrix.php-versions }} 23 extensions: mbstring, intl, bz2 24 25 - name: Setup problem matchers 26 run: | 27 echo "::add-matcher::${{ runner.tool_cache }}/php.json" 28 echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" 29 30 - name: Setup PHPUnit 31 run: | 32 php _test/fetchphpunit.php 33 34 - name: Run PHPUnit 35 run: | 36 cd _test 37 php phpunit.phar --verbose --stderr 38