Skip to content

Commit

Permalink
Merge branch 'release/2.5.7' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu2607 committed Feb 10, 2023
2 parents ea7a80d + 6ca9e45 commit 1900b9f
Show file tree
Hide file tree
Showing 61 changed files with 11,142 additions and 35 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Block Bundle code review

on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]

jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql, zip

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --no-interaction --no-progress

- name: Check for vulnerabilities
uses: symfonycorp/security-checker-action@v4

- name: Run Easy Coding Standard
run: vendor/bin/ecs check src

- name: Run PHP Stan
run: |
composer require phpstan/phpstan
composer require phpstan/extension-installer
composer require phpstan/phpstan-symfony
./vendor/bin/phpstan analyse src --memory-limit 1G
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor
var
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.5.7 (10/02/2023)

+ Add CI (cs fixer and phpstan)

## 2.5.6

- Fix code mise en page
Expand Down
19 changes: 15 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
{
"name": "pixeldev/sulu-block-bundle",
"name": "pixelopen/sulu-blockbundle",
"description": "A Symfony Bundle for Sulu content management platform containing boilerplate blocks",
"type": "library",
"require": {
"php": "^7.4||^8.0",
"pixeldev/protocol-stream": "^1.0",
"sulu/sulu": "2.4.*",
"symfony/dependency-injection": "^5.0 || ^6.0",
"symfony/http-kernel": "^5.0 || ^6.0",
"sulu/web-twig": "^2.5"
},

"require-dev": {
"dantleech/phpcr-migrations-bundle": "^1.3",
"jackalope/jackalope-doctrine-dbal": "^1.3.2",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-symfony": "^1.2",
"symplify/easy-coding-standard": "^11.1"
},
"license": "MIT",
"autoload": {
"psr-4": {
"Pixel\\BlockBundle\\": ""
"Pixel\\BlockBundle\\": "src"
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"scripts": {
"analyse": "composer-require-checker"
Expand Down
Loading

0 comments on commit 1900b9f

Please sign in to comment.