Skip to content

Commit e97830e

Browse files
authored
Add release workflow, don't install (remove from zip download) any testcases or test data (#41)
1 parent 04e54d1 commit e97830e

File tree

9 files changed

+97
-80
lines changed

9 files changed

+97
-80
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: ['7.4', '8.0', '8.1']
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_spatialhelper
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_spatialhelper

.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: '23 3 * * 4'
67

.github/workflows/phpCS.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
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/spatialhelper
29-
- name: run PHP codesniffer
30-
run: phpcs -q --standard=_test/phpcs_MigrationAdjustments.xml --report=checkstyle --runtime-set ignore_warnings_on_exit lib/plugins/spatialhelper | cs2pr
27+
# - name: run PHP codesniffer
28+
# run: php phpcs -v --runtime-set ignore_warnings_on_exit true --standard=_test/phpcs.xml lib/plugins/spatialhelper
29+
- name: run PHP codesniffer
30+
run: phpcs -q --standard=_test/phpcs_MigrationAdjustments.xml --report=checkstyle --runtime-set ignore_warnings_on_exit lib/plugins/spatialhelper | cs2pr

.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 }}

CHANGES

Lines changed: 0 additions & 15 deletions
This file was deleted.

deleted.files

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
syntax.php
2+
README.markdown
3+
CHANGES
4+
5+
_test/action.test.php
6+
_test/general.test.php
7+
8+
.github/workflows/phpCS.yml
9+
.github/workflows/maintenance.yml
10+
.github/workflows/CI.yml
11+
.github/dependabot.yml
12+
.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 spatialhelper
22
author Mark C. Prins
33
email mprins@users.sf.net
4-
date 2023-05-27
4+
date 2023-06-30
55
name Spatial Helper plugin for DokuWiki
66
desc Provides spatial indexing and spatial search facilities.
77
url https://www.dokuwiki.org/plugin:spatialhelper

0 commit comments

Comments
 (0)