Implement PSR3 and PHP Monolog (#19)
* feat: install monolog composer lib * feat: implement psr3 and monolog * feat: display logs in frontend * fix: tests * build: update cicd to run tests for PR * build: add phpcs to cicd * refactor: fix phpcs problems
This commit is contained in:
21
.github/workflows/main.yaml
vendored
21
.github/workflows/main.yaml
vendored
@@ -6,6 +6,11 @@ on:
|
||||
- master
|
||||
- 'issue/**'
|
||||
- develop
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -51,6 +56,22 @@ jobs:
|
||||
APP_ENV: testing
|
||||
run: ./vendor/bin/phpunit --testdox tests/Unit tests/Telegram
|
||||
|
||||
phpcs:
|
||||
name: Run PHP_CodeSniffer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP 7.4
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '7.4'
|
||||
tools: phpcs
|
||||
|
||||
- name: Run PHP_CodeSniffer
|
||||
working-directory: module/oc_telegram_shop/upload/oc_telegram_shop
|
||||
run: phpcs --standard=PSR12 bastion framework src
|
||||
|
||||
module-build:
|
||||
name: Build module.
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user