xref: /dokuwiki/.github/workflows/testWindows.yml (revision 0e0fd3b7b5152356c1ef84db24eabbae0d18b38b)
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        if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
10
11        strategy:
12            matrix:
13                php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
14            fail-fast: false
15
16        steps:
17            - name: Checkout
18              uses: actions/checkout@v2
19
20            - name: Setup PHP
21              uses: shivammathur/setup-php@v2
22              with:
23                  php-version: ${{ matrix.php-versions }}
24                  extensions: mbstring, intl, bz2
25
26            - name: Setup problem matchers
27              run: |
28                  echo "::add-matcher::${{ runner.tool_cache }}/php.json"
29                  echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
30
31            - name: Setup PHPUnit
32              run: |
33                  php _test/fetchphpunit.php
34
35            - name: Run PHPUnit
36              run: |
37                cd _test
38                php phpunit.phar --verbose --stderr
39