Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated default Namespace #5

Merged
merged 13 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ RUN docker-php-ext-install intl pdo_pgsql gd zip pdo_mysql
RUN pecl install redis
RUN docker-php-ext-enable redis

RUN echo "memory_limit=2G" >> /usr/local/etc/php/conf.d/docker-php-memory-limit.ini

# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
24 changes: 5 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,17 @@ jobs:
image: postgres:12.4
steps:
- uses: actions/checkout@v2
- name: Migrate
uses: MayMeowHQ/composer-run-action@v7
with:
composer_script: 'migrate'
env:
REDIS_HOST: 'redis'
REDIS_PORT: '6379'
DB_HOST: postgres
DB_PASSWORD: cakepass
DB_NAME: cake
DB_USER: cake
POSTGRES_PASSWORD: cakepass
POSTGRES_USER: cake
POSTGRES_DB: cake
- name: Composer run action PHPC_CS
- name: Composer run action TEST
uses: MayMeowHQ/composer-run-action@v7
with:
composer_script: 'test'
env:
REDIS_HOST: 'redis'
REDIS_PORT: '6379'
DB_HOST: postgres
DB_PASSWORD: cakepass
DB_NAME: cake
DB_USER: cake
DB_TEST_HOST: postgres
DB_TEST_PASSWORD: cakepass
DB_TEST_NAME: cake
DB_TEST_USER: cake
POSTGRES_PASSWORD: cakepass
POSTGRES_USER: cake
POSTGRES_DB: cake
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ nbproject/*
.vscode
# Sass preprocessor
.sass-cache/
# Coverage report
clover.xml
2 changes: 1 addition & 1 deletion bin/cake.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require dirname(__DIR__) . '/config/requirements.php';
require dirname(__DIR__) . '/vendor/autoload.php';

use App\Application;
use MeowBlog\Application;
use Cake\Console\CommandRunner;

// Build the runner with an application and root executable name.
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@
},
"autoload": {
"psr-4": {
"App\\": "src/",
"MeowBlog\\": "src/",
"Tools\\": "plugins/Tools/src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Test\\": "tests/",
"MeowBlog\\Test\\": "tests/",
"Cake\\Test\\": "vendor/cakephp/cakephp/tests/",
"Tools\\Test\\": "plugins/Tools/tests/"
}
},
"scripts": {
"post-install-cmd": "App\\Console\\Installer::postInstall",
"post-create-project-cmd": "App\\Console\\Installer::postInstall",
"post-install-cmd": "MeowBlog\\Console\\Installer::postInstall",
"post-create-project-cmd": "MeowBlog\\Console\\Installer::postInstall",
"check": [
"@test",
"@cs-check"
Expand All @@ -53,6 +53,7 @@
"cs-fix": "phpcbf --colors -p src/ tests/",
"stan": "phpstan analyse",
"test": "phpunit --colors=always",
"coverage": "XDEBUG_MODE=coverage phpunit --coverage-clover clover.xml",
"migrate": "php bin/cake.php migrations migrate"
},
"prefer-stable": true,
Expand Down
Loading