-
Notifications
You must be signed in to change notification settings - Fork 10
77 lines (64 loc) · 2.41 KB
/
fullUpgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Full Upgrade Test
on: [push, pull_request]
jobs:
modern:
name: DokuWiki ${{ matrix.dokuwiki-release }}
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
dokuwiki-release:
- '2022-06-26rc' # igor
- '2020-07-29a' # hogfather
fail-fast: true
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, intl, PDO, pdo_sqlite, bz2
- name: Download DokuWiki
run: |
wget https://github.com/dokuwiki/dokuwiki/archive/refs/tags/release-${{ matrix.dokuwiki-release }}.tar.gz -O dokuwiki-${{ matrix.dokuwiki-release }}.tgz
tar --strip-components 1 -xzf dokuwiki-${{ matrix.dokuwiki-release }}.tgz
rm dokuwiki-${{ matrix.dokuwiki-release }}.tgz
- name: Checkout
uses: actions/checkout@v3
with:
path: lib/plugins/upgrade
- name: Run Upgrade
run: |
pwd
php bin/plugin.php --loglevel info upgrade run
legacy:
name: DokuWiki ${{ matrix.dokuwiki-release }}
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
dokuwiki-release:
- '2018-04-22c' # greebo
- '2017-02-19g' # frusterick manners
- '2013-05-10a' # weatherwax
- '2009-12-25' # lemming
- '2006-11-06'
fail-fast: true
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, intl, PDO, pdo_sqlite, bz2
- name: Download DokuWiki
run: |
wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-${{ matrix.dokuwiki-release }}.tgz -O dokuwiki-${{ matrix.dokuwiki-release }}.tgz
tar --strip-components 1 -xzf dokuwiki-${{ matrix.dokuwiki-release }}.tgz
rm dokuwiki-${{ matrix.dokuwiki-release }}.tgz
- name: Checkout
uses: actions/checkout@v3
with:
path: lib/plugins/upgrade
- name: Run Upgrade
run: |
pwd
php lib/plugins/upgrade/legacy.php --loglevel info run