aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/php.yml27
-rw-r--r--Makefile2
-rw-r--r--README.md6
-rw-r--r--composer.json2
-rw-r--r--composer.lock2
5 files changed, 37 insertions, 2 deletions
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
new file mode 100644
index 0000000..defd044
--- /dev/null
+++ b/.github/workflows/php.yml
@@ -0,0 +1,27 @@
+name: build
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ php-build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Validate composer.json and composer.lock
+ run: composer validate
+
+ - name: Install dependencies
+ run: composer install --prefer-dist --no-progress --no-suggest
+
+ # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
+ # Docs: https://getcomposer.org/doc/articles/scripts.md
+
+ - name: Run test suite
+ run: make check -k
diff --git a/Makefile b/Makefile
index 43ce4c1..b68717a 100644
--- a/Makefile
+++ b/Makefile
@@ -86,6 +86,8 @@ dist/w_cms_%.zip: all
zip -d $@ \
"$(js_src_dir)/*" \
$(js_srcmaps) \
+ ".github*" \
+ tests \
.default.env \
.gitignore \
.release-it.json \
diff --git a/README.md b/README.md
index c0da5fa..e4fd1d5 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# W-CMS
+![github status] ![code style] ![phpstan level]
+
W is a lightweight CMS tool, meant to help you design a website using a unique approach. It's targeting artists, or experimental projects.
To have a better idea of what W can do, you can check out the [User manual](MANUAL.md), or dicover the [ideas](#ideas) behind this specific tool.
@@ -175,3 +177,7 @@ Then, to make the release, run the following command:
make release
To only build the release zip, simply run `make dist`. This will create a zip file in `dist/` of the current version.
+
+[github status]: https://github.com/vincent-peugnet/wcms/workflows/build/badge.svg
+[code style]: https://img.shields.io/badge/code%20style-PSR12-brightgreen
+[phpstan level]: https://img.shields.io/badge/phpstan-level%205-green \ No newline at end of file
diff --git a/composer.json b/composer.json
index 4cd706f..072f4e2 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
{
- "name": "w-cms",
+ "name": "w-cms/w-cms",
"description": "point'n think",
"require": {
"php": ">=7.2.0",
diff --git a/composer.lock b/composer.lock
index 62609f9..ffc81ad 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "content-hash": "62366ccdb1bd41c988a46000a64bffd6",
+ "content-hash": "fa8ab175273737ddd7b8aed0ce7bc82f",
"packages": [
{
"name": "altorouter/altorouter",