diff options
author | Daniel Baumann <daniel@debian.org> | 2024-12-01 21:17:14 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-12-12 11:27:45 +0100 |
commit | bf596cbb426bd672a46484bca3bd07cfa6662919 (patch) | |
tree | 41ef466309f3e567f63e8e68ef272b0a4e214138 /plugins/55/wrap/.github/workflows/phpTestLinux.yml | |
parent | Initial commit. (diff) | |
download | dokuwiki-plugins-extra-bf596cbb426bd672a46484bca3bd07cfa6662919.tar.xz dokuwiki-plugins-extra-bf596cbb426bd672a46484bca3bd07cfa6662919.zip |
Adding upstream version 20241201.upstream/20241201upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'plugins/55/wrap/.github/workflows/phpTestLinux.yml')
-rw-r--r-- | plugins/55/wrap/.github/workflows/phpTestLinux.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/plugins/55/wrap/.github/workflows/phpTestLinux.yml b/plugins/55/wrap/.github/workflows/phpTestLinux.yml new file mode 100644 index 0000000..3497aa1 --- /dev/null +++ b/plugins/55/wrap/.github/workflows/phpTestLinux.yml @@ -0,0 +1,52 @@ +name: PHP Tests on Linux + +on: [push, pull_request] + +jobs: + testLinux: + name: PHP ${{ matrix.php-versions }} DokuWiki ${{ matrix.dokuwiki-branch }} + runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository + + strategy: + matrix: + php-versions: ['7.2', '7.3', '7.4', '8.0'] + dokuwiki-branch: [ 'master', 'stable'] + exclude: + - dokuwiki-branch: 'stable' + php-versions: '8.0' + fail-fast: false + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring, intl, PDO, pdo_sqlite, bz2 + + - name: Setup problem matchers + run: | + echo ::add-matcher::${{ runner.tool_cache }}/php.json + echo ::add-matcher::${{ runner.tool_cache }}/phpunit.json + + - name: Download DokuWiki Test-setup + run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh + + - name: Run DokuWiki Test-setup + env: + CI_SERVER: 1 + DOKUWIKI: ${{ matrix.dokuwiki-branch }} + run: sh travis.sh + + - name: Setup PHPUnit + run: | + php _test/fetchphpunit.php + cd _test + + - name: Run PHPUnit + run: | + cd _test + php phpunit.phar --verbose --stderr --group plugin_wrap |