forked from haschek/DokuWiki-Plugin-DokuSIOC
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check if HTTP_ACCEPT header is set (#19)
* check if HTTP_ACCEPT header is set should fix: > PHP Warning: Undefined array key "HTTP_ACCEPT" in lib/plugins/dokusioc/action.php on line 418 fixes #17 * Update plugin.info.txt * Update CI.yml
- Loading branch information
Showing
3 changed files
with
21 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,21 @@ | ||
name: CI | ||
name: 'CI' | ||
|
||
on: [push, pull_request] | ||
on: [ push, pull_request, workflow_dispatch ] | ||
|
||
jobs: | ||
testLinux: | ||
name: PHP Unit | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-version: ['8.0', '8.1', '8.2'] | ||
dokuwiki-branch: [ 'master', 'stable'] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: mbstring, intl, 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: Install DokuWiki | ||
env: | ||
CI_SERVER: 1 | ||
DOKUWIKI: ${{ matrix.dokuwiki-branch }} | ||
run: sh travis.sh | ||
|
||
- name: Setup PHPUnit | ||
run: | | ||
php _test/fetchphpunit.php | ||
./_test/phpunit.phar --version | ||
- name: Run PHPUnit | ||
run: | | ||
cd _test && PRESERVE_TMP=false ./phpunit.phar --stderr --verbose --debug --group plugin_dokusioc | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ '8.1', '8.2' ] | ||
dokuwiki-branch: [ 'master', 'stable' ] | ||
include: | ||
- php-version: '8.0' | ||
dokuwiki-branch: 'stable' | ||
- php-version: '8.3' | ||
dokuwiki-branch: 'master' | ||
|
||
uses: mprins/.github/.github/workflows/test.yml@main | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
dokuwiki-branch: "${{ matrix.dokuwiki-branch }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters