Skip to content

Commit 5c74b60

Browse files
authored
Merge pull request #5 from humhub/enh/requirements
Add `requirements.php`
2 parents aed07d6 + b904f32 commit 5c74b60

File tree

7 files changed

+47
-153
lines changed

7 files changed

+47
-153
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: PHP Codeception Tests - develop
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
8+
jobs:
9+
tests:
10+
uses: humhub/actions/.github/workflows/module-tests-develop.yml@main
11+
with:
12+
module-id: example-basic

.github/workflows/php-test-main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: PHP Codeception Tests - next
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
8+
jobs:
9+
tests:
10+
uses: humhub/actions/.github/workflows/module-tests-next.yml@main
11+
with:
12+
module-id: example-basic

.github/workflows/php-test-master.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: PHP Codeception Tests - master
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
tests:
8+
uses: humhub/actions/.github/workflows/module-tests-master.yml@main
9+
with:
10+
module-id: example-basic

.github/workflows/php-test.yml

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

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
1.0.2 (Unreleased)
5+
----------------------
6+
- Enh #5: Add `requirements.php`
7+
48
1.0.1 (April 19, 2021)
59
----------------------
610
- Fix #1: Rename Module ID Script misses translation codes

module.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "A very basic module example",
55
"keywords": [
66
],
7-
"version": "1.0.1",
7+
"version": "1.0.2",
88
"humhub": {
99
"minVersion": "1.2"
1010
},
1111
"screenshots": ["resources/screen1.jpg"]
12-
}
12+
}

requirements.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
if (!Yii::$app->urlManager->enablePrettyUrl) {
4+
return 'Please enable URL Rewriting: https://docs.humhub.org/docs/admin/installation/#pretty-urls';
5+
}
6+
7+
return null;

0 commit comments

Comments
 (0)