-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from maximehuran/feature/sylius-1-13
Sylius 1.13 compatibility and custom background image
- Loading branch information
Showing
24 changed files
with
319 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,87 @@ | ||
name: Flex Recipe | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
recipe: | ||
|
||
name: Flex recipe (PHP ${{ matrix.php }}, Sylius ${{ matrix.sylius }}) | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.2'] | ||
sylius: ["~1.12.0"] | ||
|
||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: gd, intl, json | ||
ini-values: date.timezone=UTC | ||
tools: symfony-cli | ||
|
||
- name: Set project php-version | ||
run: | | ||
echo ${{ matrix.php }} > .php-version | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: plugin | ||
|
||
- name: Determine composer cache directory | ||
id: composer-cache-directory | ||
working-directory: plugin | ||
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v3 | ||
id: cache-composer | ||
with: | ||
path: ${{ steps.composer-cache-directory.outputs.directory }} | ||
key: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}- | ||
|
||
- name: Ensure that composer cache directory exists | ||
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }} | ||
|
||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
|
||
- name: Create Sylius-Standard project without install | ||
run: | | ||
composer create-project --prefer-dist --no-scripts --no-progress --no-install sylius/sylius-standard sylius "${{ matrix.sylius }}" | ||
# Because the sylius-standard has a soft constraint | ||
- name: Make sure to install the required version of Sylius | ||
working-directory: ./sylius | ||
run: | | ||
composer require --no-install --no-scripts --no-progress sylius/sylius="${{ matrix.sylius }}" | ||
- name: Setup some requirements | ||
working-directory: ./sylius | ||
run: | | ||
composer config --no-plugins allow-plugins true | ||
composer config --no-plugins extra.symfony.allow-contrib true | ||
composer config --no-plugins secure-http false | ||
composer config --no-plugins --unset platform.php | ||
composer config --no-plugins extra.symfony.docker false | ||
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]' | ||
composer config repositories.plugin '{"type": "path", "url": "../plugin/"}' | ||
- name: Require plugin & install all dependencies | ||
working-directory: ./sylius | ||
run: | | ||
composer require monsieurbiz/sylius-better-admin-plugin="*@dev" | ||
recipe: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.0', '8.1', '8.2'] | ||
sylius: ["~1.11.0", "~1.12.0", "~1.13.0"] | ||
exclude: | ||
- php: '8.2' | ||
sylius: '~1.11.0' | ||
- php: '8.0' | ||
sylius: '~1.12.0' | ||
- php: '8.0' | ||
sylius: '~1.13.0' | ||
|
||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: gd, intl, json | ||
ini-values: date.timezone=UTC | ||
tools: symfony-cli | ||
|
||
- name: Set project php-version | ||
run: | | ||
echo ${{ matrix.php }} > .php-version | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: plugin | ||
|
||
- name: Determine composer cache directory | ||
id: composer-cache-directory | ||
working-directory: plugin | ||
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v3 | ||
id: cache-composer | ||
with: | ||
path: ${{ steps.composer-cache-directory.outputs.directory }} | ||
key: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}- | ||
|
||
- name: Ensure that composer cache directory exists | ||
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }} | ||
|
||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
|
||
- name: Create Sylius-Standard project without install | ||
run: | | ||
composer create-project --prefer-dist --no-scripts --no-progress --no-install sylius/sylius-standard sylius "${{ matrix.sylius }}" | ||
# Because the sylius-standard has a soft constraint | ||
- name: Make sure to install the required version of Sylius | ||
working-directory: ./sylius | ||
run: | | ||
composer require --no-install --no-scripts --no-progress sylius/sylius="${{ matrix.sylius }}" | ||
- name: Setup some requirements | ||
working-directory: ./sylius | ||
run: | | ||
composer config --no-plugins allow-plugins true | ||
composer config --no-plugins extra.symfony.allow-contrib true | ||
composer config --no-plugins secure-http false | ||
composer config --no-plugins --unset platform.php | ||
composer config --no-plugins extra.symfony.docker false | ||
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]' | ||
composer config repositories.plugin '{"type": "path", "url": "../plugin/"}' | ||
- name: Require plugin & install all dependencies | ||
working-directory: ./sylius | ||
run: | | ||
composer require monsieurbiz/sylius-better-admin-plugin="*@dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,53 @@ | ||
name: Security | ||
|
||
on: | ||
push: | ||
pull_request: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
security: | ||
security: | ||
|
||
name: Security check (PHP ${{ matrix.php }}) | ||
runs-on: ubuntu-latest | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.1', '8.2'] | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.2'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: gd, intl, json | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: gd, intl, json | ||
ini-values: date.timezone=UTC | ||
- name: Set project php-version | ||
run: | | ||
echo "${{ matrix.php }}" > .php-version | ||
- name: Set project php-version | ||
run: | | ||
echo ${{ matrix.php }} > .php-version | ||
- name: Determine composer cache directory | ||
id: composer-cache-directory | ||
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Determine composer cache directory | ||
id: composer-cache-directory | ||
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v3 | ||
id: cache-composer | ||
with: | ||
path: ${{ steps.composer-cache-directory.outputs.directory }} | ||
key: composer2-php:${{ matrix.php }}-${{ github.sha }} | ||
restore-keys: composer2-php:${{ matrix.php }}- | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v3 | ||
id: cache-composer | ||
with: | ||
path: ${{ steps.composer-cache-directory.outputs.directory }} | ||
key: composer2-php:${{ matrix.php }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: composer2-php:${{ matrix.php }}- | ||
- name: Ensure that composer cache directory exists | ||
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }} | ||
- name: Ensure that composer cache directory exists | ||
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }} | ||
|
||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
|
||
- name: Install PHP dependencies | ||
run: composer update --prefer-dist | ||
- name: Install PHP dependencies | ||
run: composer update --prefer-dist | ||
|
||
- uses: symfonycorp/security-checker-action@v4 | ||
- uses: symfonycorp/security-checker-action@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,79 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
php: | ||
php: | ||
|
||
name: Quality tests (PHP ${{ matrix.php }}) | ||
runs-on: ubuntu-latest | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.1', '8.2'] | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.2'] | ||
env: | ||
SYMFONY_ARGS: --no-tls | ||
COMPOSER_ARGS: --prefer-dist | ||
DOCKER_INTERACTIVE_ARGS: -t | ||
|
||
env: | ||
COMPOSER_ARGS: --prefer-dist | ||
DOCKER_INTERACTIVE_ARGS: -t | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: gd, intl, json | ||
ini-values: date.timezone=UTC | ||
tools: symfony-cli | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set project php-version | ||
run: | | ||
echo "${{ matrix.php }}" > .php-version | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
- name: Determine composer cache directory | ||
id: composer-cache-directory | ||
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: gd, intl, json | ||
ini-values: date.timezone=UTC | ||
tools: symfony-cli | ||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v3 | ||
id: cache-composer | ||
with: | ||
path: ${{ steps.composer-cache-directory.outputs.directory }} | ||
key: composer2-php:${{ matrix.php }}-${{ github.sha }} | ||
restore-keys: composer2-php:${{ matrix.php }}- | ||
|
||
- name: Set project php-version | ||
run: | | ||
echo ${{ matrix.php }} > .php-version | ||
- name: Ensure that composer cache directory exists | ||
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }} | ||
|
||
- name: Determine composer cache directory | ||
id: composer-cache-directory | ||
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT | ||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
|
||
- name: Cache dependencies installed with composer | ||
uses: actions/cache@v3 | ||
id: cache-composer | ||
with: | ||
path: ${{ steps.composer-cache-directory.outputs.directory }} | ||
key: composer2-php:${{ matrix.php }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: composer2-php:${{ matrix.php }}- | ||
- run: make install | ||
|
||
- name: Ensure that composer cache directory exists | ||
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }} | ||
- run: make test.composer | ||
|
||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
- run: make test.phpcs | ||
|
||
- run: make install | ||
- run: make test.phpunit | ||
|
||
- run: make test.composer | ||
- run: make test.phpstan | ||
|
||
- run: make test.phpcs | ||
- run: make test.phpmd | ||
|
||
- run: make test.phpstan | ||
- run: make test.phpspec | ||
|
||
- run: make test.phpmd | ||
- run: make test.yaml | ||
|
||
- run: make test.yaml | ||
- run: make test.twig | ||
|
||
- run: make test.twig | ||
- run: make test.schema | ||
|
||
- run: make test.schema | ||
|
||
- run: make test.container | ||
- run: make test.container |
Oops, something went wrong.