Skip to content

Commit

Permalink
Merge 0ab5d97 into 9b63eee
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Aug 29, 2020
2 parents 9b63eee + 0ab5d97 commit 1f2a423
Show file tree
Hide file tree
Showing 15 changed files with 311 additions and 138 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/documentation.yaml
Expand Up @@ -2,64 +2,64 @@
#
# It's auto-generated by sonata-project/dev-kit package.

on:
push:
paths:
- 'docs/**'

pull_request:
paths:
- 'docs/**'

name: Documentation

on:
push:
branches:
- master
- 3.x
pull_request:
paths:
- 'docs/**'

jobs:
build:
name: Build
build:
name: Build

runs-on: ubuntu-latest

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: '3.7'

- name: "Set up Python 3.7"
uses: actions/setup-python@v1
with:
python-version: '3.7' # Semantic version range syntax or exact version of a Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: "Display Python version"
run: python -c "import sys; print(sys.version)"
- name: Install Sphinx dependencies
run: sudo apt-get install python-dev build-essential

- name: "Install Sphinx dependencies"
run: sudo apt-get install python-dev build-essential
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip

- name: "Cache pip"
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-

- name: "Install custom requirements via pip"
run: pip install -r docs/requirements.txt
- name: Install custom requirements via pip
run: pip install -r docs/requirements.txt

- name: "Build documentation"
run: make docs
- name: Build documentation
run: make docs

doctor-rst:
name: DOCtor-RST
doctor-rst:
name: DOCtor-RST

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: "Run DOCtor-RST"
uses: docker://oskarstark/doctor-rst
with:
args: --short
env:
DOCS_DIR: 'docs/'
- name: Run DOCtor-RST
uses: docker://oskarstark/doctor-rst
with:
args: --short
env:
DOCS_DIR: 'docs/'
95 changes: 51 additions & 44 deletions .github/workflows/lint.yaml
Expand Up @@ -2,68 +2,75 @@
#
# It's auto-generated by sonata-project/dev-kit package.

on: [push, pull_request]

name: Lint

on:
push:
branches:
- master
- 3.x
pull_request:

jobs:
php-cs-fixer:
name: PHP-CS-Fixer
php-cs-fixer:
name: PHP-CS-Fixer

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: "Run PHP-CS-Fixer"
uses: docker://oskarstark/php-cs-fixer-ga:2.16.1
with:
args: --ansi --verbose --diff --dry-run
- name: Run PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga:2.16.4
with:
args: --ansi --verbose --diff --dry-run

composer-normalize:
name: composer-normalize
composer-normalize:
name: composer-normalize

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: "Run composer-normalize"
uses: docker://localheinz/composer-normalize-action:0.5.2
with:
args: --dry-run
- name: Run composer-normalize
uses: docker://ergebnis/composer-normalize-action:0.8.0
with:
args: --dry-run

yaml-files:
name: YAML files
yaml-files:
name: YAML files

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: "Install Ruby 2.6"
uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Install Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'

- run: gem install yaml-lint
- name: Install required gem
run: gem install yaml-lint

- name: "Linting..."
run: make lint-yaml
- name: Lint files
run: make lint-yaml

xml-files:
name: XML files
xml-files:
name: XML files

runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- run: sudo apt-get update && sudo apt-get install libxml2-utils
- name: Install required dependencies
run: sudo apt-get update && sudo apt-get install libxml2-utils

- name: "Linting..."
run: make lint-xml
- name: Lint files
run: make lint-xml
18 changes: 8 additions & 10 deletions .github/workflows/stale.yaml
Expand Up @@ -4,32 +4,30 @@

# https://github.com/actions/stale

name: "Stale"
name: Stale

on:
schedule:
- cron: "0 9-18 * * *"

jobs:
stale:
runs-on: "ubuntu-latest"
runs-on: ubuntu-latest

steps:
- name: "Close stale issues and pull requests"

uses: "actions/stale@v1.1.0"

- name: Close stale issues and pull requests
uses: actions/stale@v1.1.0
with:
days-before-close: 7
days-before-stale: 180
repo-token: "${{ secrets.GITHUB_TOKEN }}"
exempt-issue-label: "keep"
stale-issue-label: "stale"
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-label: keep
stale-issue-label: stale
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
stale-pr-label: "stale"
stale-pr-label: stale
stale-pr-message: >
This PR has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
Expand Down
95 changes: 95 additions & 0 deletions .github/workflows/test.yaml
@@ -0,0 +1,95 @@
# DO NOT EDIT THIS FILE!
#
# It's auto-generated by sonata-project/dev-kit package.

name: Test

on:
push:
branches:
- master
- 3.x
pull_request:

jobs:
test:
name: PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }} + ${{ matrix.variant }}

runs-on: ubuntu-latest

continue-on-error: ${{ matrix.allowed_to_fail }}

strategy:
matrix:
php-version:
- '7.3'
- '7.4'
dependencies: [highest]
allowed_to_fail: [false]
variant: [normal]
include:
- php-version: '7.3'
dependencies: lowest
allowed_to_fail: false
variant: normal
- php-version: '8.0'
dependencies: highest
allowed_to_fail: true
variant: normal
- php-version: '7.3'
dependencies: highest
allowed_to_fail: false
variant: 'symfony/symfony:"4.4.*"'
- php-version: '7.3'
dependencies: highest
allowed_to_fail: false
variant: 'sonata-project/block-bundle:"4.*"'

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
tools: composer:v2

- name: Add PHPUnit matcher
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Set Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache Composer
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ matrix.variant }}
restore-keys: ${{ runner.os }}-${{ matrix.php-version }}-composer-

- name: Install variant
if: matrix.variant != 'normal'
run: composer require ${{ matrix.variant }} --no-update

- name: Install Composer dependencies (lowest)
if: matrix.dependencies == 'lowest'
run: composer update --prefer-dist --no-progress --no-interaction --prefer-stable --prefer-lowest

- name: Install Composer dependencies (highest)
if: matrix.dependencies == 'highest' && matrix.php-version != '8.0'
run: composer update --prefer-dist --no-progress --no-interaction --prefer-stable

- name: Install Composer dependencies (highest) on PHP 8.0
if: matrix.dependencies == 'highest' && matrix.php-version == '8.0'
run: composer update --prefer-dist --no-progress --no-interaction --prefer-stable --ignore-platform-req=php

- name: Run Tests
run: make test

- name: Send coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: build/logs/clover.xml
13 changes: 13 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,19 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.75.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.74.0...3.75.0) - 2020-08-26
### Changed
- [[#6313](https://github.com/sonata-project/SonataAdminBundle/pull/6313)] Bump "knplabs/knp-menu-bundle" to ^3.0 ([@dmaicher](https://github.com/dmaicher))

### Deprecated
- [[#6312](https://github.com/sonata-project/SonataAdminBundle/pull/6312)] Deprecated `Sonata\AdminBundle\Model\ModelManagerInterface` collection-related methods ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#6288](https://github.com/sonata-project/SonataAdminBundle/pull/6288)] Deprecated passing `callable` that does not return `Symfony\Component\Routing\Route` as `$element` (2nd argument) to `Sonata\AdminBundle\Route\RouteCollection::addElement($code, $element)` ([@vladyslavstartsev](https://github.com/vladyslavstartsev))

### Fixed
- [[#6325](https://github.com/sonata-project/SonataAdminBundle/pull/6325)] Fixed allowing valid action names in `CRUDController::batchAction()` ([@phansys](https://github.com/phansys))
- [[#6321](https://github.com/sonata-project/SonataAdminBundle/pull/6321)] Fixed mutating the original request at `CRUDController::batchAction()` ([@phansys](https://github.com/phansys))
- [[#6271](https://github.com/sonata-project/SonataAdminBundle/pull/6271)] "Notice: Undefined index: idx" if there are no list items are selected ([@nieuwenhuisen](https://github.com/nieuwenhuisen))

## [3.74.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.73.0...3.74.0) - 2020-08-22
### Added
- [[#6299](https://github.com/sonata-project/SonataAdminBundle/pull/6299)] Added support for symfony/expression-language:^5.1 ([@phansys](https://github.com/phansys))
Expand Down

0 comments on commit 1f2a423

Please sign in to comment.