1name: PHP Tests on Linux 2 3on: [push, pull_request] 4 5jobs: 6 testLinux: 7 name: PHP ${{ matrix.php-versions }} DokuWiki ${{ matrix.dokuwiki-branch }} 8 runs-on: ubuntu-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'] 14 dokuwiki-branch: [ 'master', 'stable'] 15 exclude: 16 - dokuwiki-branch: 'stable' 17 php-versions: '8.0' 18 fail-fast: false 19 20 steps: 21 - name: Checkout 22 uses: actions/checkout@v2 23 24 - name: Setup PHP 25 uses: shivammathur/setup-php@v2 26 with: 27 php-version: ${{ matrix.php-versions }} 28 extensions: mbstring, intl, PDO, pdo_sqlite, bz2 29 30 - name: Setup problem matchers 31 run: | 32 echo ::add-matcher::${{ runner.tool_cache }}/php.json 33 echo ::add-matcher::${{ runner.tool_cache }}/phpunit.json 34 35 - name: Download DokuWiki Test-setup 36 run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh 37 38 - name: Run DokuWiki Test-setup 39 env: 40 CI_SERVER: 1 41 DOKUWIKI: ${{ matrix.dokuwiki-branch }} 42 run: sh travis.sh 43 44 - name: Setup PHPUnit 45 run: | 46 php _test/fetchphpunit.php 47 cd _test 48 49 - name: Run PHPUnit 50 run: | 51 cd _test 52 php phpunit.phar --verbose --stderr --group plugin_timezone 53