Skip to content

Commit 89371ce

Browse files
authored
Add release workflow, don't install (remove from zip download) any testcases or test data (#32)
1 parent 640284e commit 89371ce

File tree

8 files changed

+102
-69
lines changed

8 files changed

+102
-69
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.github/ export-ignore
2+
/_test/ export-ignore

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# Sponsoring is available via https://github.com/sponsors/mprins
12
github: [mprins]

.github/workflows/CI.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [ push, pull_request ]
44

55
jobs:
6-
testLinux:
7-
name: PHP Unit
8-
runs-on: ubuntu-latest
9-
10-
strategy:
11-
matrix:
12-
php-version: ['8.0', '8.1', '8.2']
13-
dokuwiki-branch: [ 'master', 'stable']
14-
fail-fast: false
15-
16-
steps:
17-
- uses: actions/checkout@v3
18-
19-
- name: Setup PHP
20-
uses: shivammathur/setup-php@v2
21-
with:
22-
php-version: ${{ matrix.php-version }}
23-
extensions: mbstring, intl, bz2
24-
25-
- name: Setup problem matchers
26-
run: |
27-
echo ::add-matcher::${{ runner.tool_cache }}/php.json
28-
echo ::add-matcher::${{ runner.tool_cache }}/phpunit.json
29-
30-
- name: Download DokuWiki Test-setup
31-
run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh
32-
33-
- name: Install DokuWiki
34-
env:
35-
CI_SERVER: 1
36-
DOKUWIKI: ${{ matrix.dokuwiki-branch }}
37-
run: sh travis.sh
38-
39-
- name: Setup PHPUnit
40-
run: |
41-
php _test/fetchphpunit.php
42-
./_test/phpunit.phar --version
43-
44-
- name: Run PHPUnit
45-
run: |
46-
cd _test && PRESERVE_TMP=false ./phpunit.phar --stderr --verbose --debug --group plugin_geotag
6+
testLinux:
7+
name: PHP Unit
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
php-version: [ '8.0', '8.1', '8.2' ]
13+
dokuwiki-branch: [ 'master', 'stable' ]
14+
fail-fast: false
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-version }}
23+
extensions: mbstring, intl, bz2
24+
25+
- name: Setup problem matchers
26+
run: |
27+
echo ::add-matcher::${{ runner.tool_cache }}/php.json
28+
echo ::add-matcher::${{ runner.tool_cache }}/phpunit.json
29+
30+
- name: Download DokuWiki Test-setup
31+
run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh
32+
33+
- name: Install DokuWiki
34+
env:
35+
CI_SERVER: 1
36+
DOKUWIKI: ${{ matrix.dokuwiki-branch }}
37+
run: sh travis.sh
38+
39+
- name: Setup PHPUnit
40+
run: |
41+
php _test/fetchphpunit.php
42+
./_test/phpunit.phar --version
43+
44+
- name: Run PHPUnit
45+
run: |
46+
cd _test && PRESERVE_TMP=false ./phpunit.phar --stderr --verbose --debug --group plugin_geotag

.github/workflows/maintenance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 'Repository Maintenance'
22

33
on:
4+
workflow_dispatch:
45
schedule:
56
- cron: '41 9 * * 5'
67

.github/workflows/phpCS.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
name: PHP Code Style
22

3-
on: [push]
3+
on: [ push ]
44

55
jobs:
6-
phpcs:
7-
name: PHP CodeSniffer
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v3
6+
phpcs:
7+
name: PHP CodeSniffer
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
1111

12-
- name: Setup PHP
13-
uses: shivammathur/setup-php@v2
14-
with:
15-
php-version: '7.4'
16-
tools: cs2pr, phpcs
12+
- name: Setup PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.2'
16+
tools: cs2pr, phpcs
1717

18-
- name: retrieve script
19-
run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh
18+
- name: retrieve script
19+
run: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh
2020

21-
- name: Install DokuWiki
22-
env:
23-
CI_SERVER: 1
24-
DOKUWIKI : master
25-
run: sh travis.sh
21+
- name: Install DokuWiki
22+
env:
23+
CI_SERVER: 1
24+
DOKUWIKI: master
25+
run: sh travis.sh
2626

27-
# - name: run PHP codesniffer
28-
# run: php phpcs -v --runtime-set ignore_warnings_on_exit true --standard=_test/phpcs.xml lib/plugins/geotag
29-
- name: run PHP codesniffer
30-
run: phpcs -v --standard=_test/phpcs_MigrationAdjustments.xml --report-full --report-checkstyle=./phpcs-report.xml lib/plugins/geotag
27+
# - name: run PHP codesniffer
28+
# run: php phpcs -v --runtime-set ignore_warnings_on_exit true --standard=_test/phpcs.xml lib/plugins/geotag
29+
- name: run PHP codesniffer
30+
run: phpcs -v --standard=_test/phpcs_MigrationAdjustments.xml --report-full --report-checkstyle=./phpcs-report.xml lib/plugins/geotag
3131

32-
- name: Annotate PR
33-
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
34-
run: cs2pr --notices-as-warnings --colorize ./phpcs-report.xml
32+
- name: Annotate PR
33+
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
34+
run: cs2pr --notices-as-warnings --colorize ./phpcs-report.xml

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- "*.info.txt"
9+
10+
jobs:
11+
release:
12+
name: Release
13+
uses: mprins/.github/.github/workflows/DW-plugin-release.yml@main
14+
secrets:
15+
DOKUWIKI_USER: ${{ secrets.DOKUWIKI_USER }}
16+
DOKUWIKI_PASS: ${{ secrets.DOKUWIKI_PASS }}

deleted.files

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
helper.php
22
script.js
3-
CHANGES
3+
CHANGES
4+
5+
_test/action.test.php
6+
_test/general.test.php
7+
_test/data/pages/fullgeotag.txt
8+
_test/data/pages/fullgeotagnegativecoords.txt
9+
_test/data/pages/minimalgeotag.txt
10+
_test/data/pages/nogeotag.txt
11+
12+
.github/workflows/phpCS.yml
13+
.github/workflows/maintenance.yml
14+
.github/workflows/CI.yml
15+
.github/dependabot.yml
16+
.github/ISSUE_TEMPLATE.md

plugin.info.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
base geotag
22
author Mark C. Prins
33
4-
date 2022-11-21
4+
date 2023-06-30
55
name geotag plugin
66
desc Allow a user to annotate pages with a geotag
77
url https://www.dokuwiki.org/plugin:geotag

0 commit comments

Comments
 (0)