Skip to content

Commit

Permalink
Merge pull request #5 from humhub/enh/requirements
Browse files Browse the repository at this point in the history
Add `requirements.php`
  • Loading branch information
luke- authored Mar 14, 2024
2 parents aed07d6 + b904f32 commit 5c74b60
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 153 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/php-test-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PHP Codeception Tests - develop

on:
push:
schedule:
- cron: "0 0 * * 0"

jobs:
tests:
uses: humhub/actions/.github/workflows/module-tests-develop.yml@main
with:
module-id: example-basic
12 changes: 12 additions & 0 deletions .github/workflows/php-test-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PHP Codeception Tests - next

on:
push:
schedule:
- cron: "0 0 * * 0"

jobs:
tests:
uses: humhub/actions/.github/workflows/module-tests-next.yml@main
with:
module-id: example-basic
10 changes: 10 additions & 0 deletions .github/workflows/php-test-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PHP Codeception Tests - master

on:
push:

jobs:
tests:
uses: humhub/actions/.github/workflows/module-tests-master.yml@main
with:
module-id: example-basic
151 changes: 0 additions & 151 deletions .github/workflows/php-test.yml

This file was deleted.

4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.0.2 (Unreleased)
----------------------
- Enh #5: Add `requirements.php`

1.0.1 (April 19, 2021)
----------------------
- Fix #1: Rename Module ID Script misses translation codes
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "A very basic module example",
"keywords": [
],
"version": "1.0.1",
"version": "1.0.2",
"humhub": {
"minVersion": "1.2"
},
"screenshots": ["resources/screen1.jpg"]
}
}
7 changes: 7 additions & 0 deletions requirements.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if (!Yii::$app->urlManager->enablePrettyUrl) {
return 'Please enable URL Rewriting: https://docs.humhub.org/docs/admin/installation/#pretty-urls';
}

return null;

0 comments on commit 5c74b60

Please sign in to comment.