mirror of
https://github.com/splitbrain/dokuwiki-plugin-dw2pdf.git
synced 2025-07-23 01:02:52 +00:00
use new test workflows
This commit is contained in:
11
.github/workflows/dokuwiki.yml
vendored
Normal file
11
.github/workflows/dokuwiki.yml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
name: DokuWiki Default Tasks
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '22 12 25 * *'
|
||||
|
||||
|
||||
jobs:
|
||||
all:
|
||||
uses: dokuwiki/github-action/.github/workflows/all.yml@main
|
52
.github/workflows/phpTestLinux.yml
vendored
52
.github/workflows/phpTestLinux.yml
vendored
@ -1,52 +0,0 @@
|
||||
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_dw2pdf
|
Reference in New Issue
Block a user