-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release workflow, don't install (remove from zip download) any te…
…stcases or test data (#15)
- Loading branch information
Showing
8 changed files
with
94 additions
and
66 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/.github/ export-ignore | ||
/_test/ export-ignore |
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 +1,2 @@ | ||
# Sponsoring is available via https://github.com/sponsors/mprins | ||
github: [mprins] |
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,46 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
testLinux: | ||
name: PHP Unit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-version: ['7.4', '8.0', '8.1'] | ||
dokuwiki-branch: [ 'master', 'stable'] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- 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_webmaster | ||
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@v3 | ||
|
||
- 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_webmaster |
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,6 +1,7 @@ | ||
name: 'Repository Maintenance' | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '7 3 * * 6' | ||
|
||
|
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,30 +1,30 @@ | ||
name: PHP Code Style | ||
|
||
on: [push] | ||
on: [ push ] | ||
|
||
jobs: | ||
phpcs: | ||
name: PHP CodeSniffer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
phpcs: | ||
name: PHP CodeSniffer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
tools: cs2pr, phpcs | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
tools: cs2pr, phpcs | ||
|
||
- name: retrieve script | ||
run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh | ||
- name: retrieve script | ||
run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh | ||
|
||
- name: Install DokuWiki | ||
env: | ||
CI_SERVER: 1 | ||
DOKUWIKI : master | ||
run: sh travis.sh | ||
- name: Install DokuWiki | ||
env: | ||
CI_SERVER: 1 | ||
DOKUWIKI: master | ||
run: sh travis.sh | ||
|
||
# - name: run PHP codesniffer | ||
# run: php phpcs -v --runtime-set ignore_warnings_on_exit true --standard=_test/phpcs.xml lib/plugins/webmaster | ||
- name: run PHP codesniffer | ||
run: phpcs -q --standard=_test/phpcs_MigrationAdjustments.xml --report=checkstyle --runtime-set ignore_warnings_on_exit lib/plugins/webmaster | cs2pr | ||
# - name: run PHP codesniffer | ||
# run: php phpcs -v --runtime-set ignore_warnings_on_exit true --standard=_test/phpcs.xml lib/plugins/webmaster | ||
- name: run PHP codesniffer | ||
run: phpcs -q --standard=_test/phpcs_MigrationAdjustments.xml --report=checkstyle --runtime-set ignore_warnings_on_exit lib/plugins/webmaster | cs2pr |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "*.info.txt" | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
uses: mprins/.github/.github/workflows/DW-plugin-release.yml@main | ||
secrets: | ||
DOKUWIKI_USER: ${{ secrets.DOKUWIKI_USER }} | ||
DOKUWIKI_PASS: ${{ secrets.DOKUWIKI_PASS }} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
_test/action.test.php | ||
_test/general.test.php | ||
|
||
.github/workflows/phpCS.yml | ||
.github/workflows/maintenance.yml | ||
.github/workflows/CI.yml | ||
.github/dependabot.yml | ||
.github/ISSUE_TEMPLATE.md |
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,7 +1,7 @@ | ||
base webmaster | ||
author Mark C. Prins | ||
email [email protected] | ||
date 2021-04-14 | ||
date 2023-06-30 | ||
name webmaster tools plugin | ||
desc Adds webmaster site verification keys for Google, Bing, Yandex and Pinterest to your wiki pages. | ||
url http://dokuwiki.org/plugin:webmaster | ||
url https://dokuwiki.org/plugin:webmaster |