1name: CI 2 3on: [push, pull_request] 4 5jobs: 6 testLinux: 7 name: PHP Unit 8 runs-on: ubuntu-latest 9 10 strategy: 11 matrix: 12 php-version: ['7.3', '7.4'] 13 dokuwiki-branch: [ 'master', 'stable'] 14 include: 15 - php-version: '8.0' 16 dokuwiki-branch: 'master' 17 experimental: true 18 fail-fast: false 19 20 steps: 21 - uses: actions/checkout@v2 22 23 - name: Setup PHP 24 uses: shivammathur/setup-php@v2 25 with: 26 php-version: ${{ matrix.php-version }} 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: Download DokuWiki Test-setup 35 run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh 36 37 - name: Install DokuWiki 38 env: 39 CI_SERVER: 1 40 DOKUWIKI: ${{ matrix.dokuwiki-branch }} 41 run: sh travis.sh 42 43 - name: Setup PHPUnit 44 run: | 45 php _test/fetchphpunit.php 46 ./_test/phpunit.phar --version 47 48 - name: Run PHPUnit 49 run: | 50 cd _test && PRESERVE_TMP=false ./phpunit.phar --stderr --verbose --debug --group plugin_backlinks 51