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