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