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