Skip to content

Commit 325637f

Browse files
authored
Merge pull request #6 from maximehuran/feature/sylius-1-14
2 parents ed36080 + 53646f9 commit 325637f

File tree

71 files changed

+441
-426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+441
-426
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/recipe.yaml

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
11
name: Flex Recipe
22

33
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
4+
push:
5+
branches: [ master ]
6+
pull_request:
77

88
jobs:
99

10-
recipe:
11-
12-
runs-on: ubuntu-latest
13-
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
php: ['8.1', '8.2']
18-
sylius: ["~1.12.0", "~1.13.0"]
19-
20-
steps:
21-
- name: Setup PHP
22-
uses: shivammathur/setup-php@v2
23-
with:
24-
php-version: ${{ matrix.php }}
25-
extensions: gd, intl, json
26-
ini-values: date.timezone=UTC
27-
tools: symfony-cli
28-
29-
- name: Set project php-version
30-
run: |
31-
echo ${{ matrix.php }} > .php-version
32-
33-
- uses: actions/checkout@v3
34-
with:
35-
path: plugin
36-
37-
- name: Determine composer cache directory
38-
id: composer-cache-directory
39-
working-directory: plugin
40-
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT
41-
42-
- name: Cache dependencies installed with composer
43-
uses: actions/cache@v3
44-
id: cache-composer
45-
with:
46-
path: ${{ steps.composer-cache-directory.outputs.directory }}
47-
key: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-${{ hashFiles('**/composer.json') }}
48-
restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-
49-
50-
- name: Ensure that composer cache directory exists
51-
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }}
52-
53-
- name: Composer Github Auth
54-
run: composer config -g github-oauth.github.com ${{ github.token }}
55-
56-
- name: Create Sylius-Standard project without install
57-
run: |
58-
composer create-project --prefer-dist --no-scripts --no-progress --no-install sylius/sylius-standard sylius "${{ matrix.sylius }}"
59-
60-
# Because the sylius-standard has a soft constraint
61-
- name: Make sure to install the required version of Sylius
62-
working-directory: ./sylius
63-
run: |
64-
composer require --no-install --no-scripts --no-progress sylius/sylius="${{ matrix.sylius }}"
65-
66-
- name: Setup some requirements
67-
working-directory: ./sylius
68-
run: |
69-
composer config --no-plugins allow-plugins true
70-
composer config --no-plugins extra.symfony.allow-contrib true
71-
composer config --no-plugins secure-http false
72-
composer config --no-plugins --unset platform.php
73-
composer config --no-plugins extra.symfony.docker false
74-
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
75-
composer config repositories.plugin '{"type": "path", "url": "../plugin/"}'
76-
77-
- name: Require plugin & install all dependencies
78-
working-directory: ./sylius
79-
run: |
80-
composer require monsieurbiz/sylius-blog-plugin="*@dev"
10+
recipe:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php: ['8.1', '8.2', '8.3']
18+
sylius: ["~1.12.0", "~1.13.0", "1.14.0"]
19+
20+
steps:
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
extensions: gd, intl, json
26+
ini-values: date.timezone=UTC
27+
tools: symfony-cli
28+
29+
- name: Set project php-version
30+
run: |
31+
echo ${{ matrix.php }} > .php-version
32+
33+
- uses: actions/checkout@v3
34+
with:
35+
path: plugin
36+
37+
- name: Determine composer cache directory
38+
id: composer-cache-directory
39+
working-directory: plugin
40+
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT
41+
42+
- name: Cache dependencies installed with composer
43+
uses: actions/cache@v3
44+
id: cache-composer
45+
with:
46+
path: ${{ steps.composer-cache-directory.outputs.directory }}
47+
key: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-${{ hashFiles('**/composer.json') }}
48+
restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-
49+
50+
- name: Ensure that composer cache directory exists
51+
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }}
52+
53+
- name: Composer Github Auth
54+
run: composer config -g github-oauth.github.com ${{ github.token }}
55+
56+
- name: Create Sylius-Standard project without install
57+
run: |
58+
composer create-project --prefer-dist --no-scripts --no-progress --no-install sylius/sylius-standard sylius "${{ matrix.sylius }}"
59+
60+
# Because the sylius-standard has a soft constraint
61+
- name: Make sure to install the required version of Sylius
62+
working-directory: ./sylius
63+
run: |
64+
composer require --no-install --no-scripts --no-progress sylius/sylius="${{ matrix.sylius }}"
65+
66+
- name: Setup some requirements
67+
working-directory: ./sylius
68+
run: |
69+
composer config --no-plugins allow-plugins true
70+
composer config --no-plugins extra.symfony.allow-contrib true
71+
composer config --no-plugins secure-http false
72+
composer config --no-plugins --unset platform.php
73+
composer config --no-plugins extra.symfony.docker false
74+
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
75+
composer config repositories.plugin '{"type": "path", "url": "../plugin/"}'
76+
77+
- name: Require plugin & install all dependencies
78+
working-directory: ./sylius
79+
run: |
80+
composer require monsieurbiz/sylius-blog-plugin="*@dev"

.github/workflows/security.yaml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
name: Security
22

33
on:
4-
push:
5-
pull_request:
4+
push:
5+
pull_request:
66

77
jobs:
88

9-
security:
9+
security:
1010

11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-latest
1212

13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
php: ['8.1', '8.2']
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: ['8.1', '8.2', '8.3']
1717

18-
steps:
19-
- uses: actions/checkout@v3
18+
steps:
19+
- uses: actions/checkout@v3
2020

21-
- name: Setup PHP
22-
uses: shivammathur/setup-php@v2
23-
with:
24-
php-version: ${{ matrix.php }}
25-
extensions: gd, intl, json
26-
ini-values: date.timezone=UTC
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
extensions: gd, intl, json
2726

28-
- name: Set project php-version
29-
run: |
30-
echo ${{ matrix.php }} > .php-version
27+
- name: Set project php-version
28+
run: |
29+
echo "${{ matrix.php }}" > .php-version
3130
32-
- name: Determine composer cache directory
33-
id: composer-cache-directory
34-
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT
31+
- name: Determine composer cache directory
32+
id: composer-cache-directory
33+
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT
3534

36-
- name: Cache dependencies installed with composer
37-
uses: actions/cache@v3
38-
id: cache-composer
39-
with:
40-
path: ${{ steps.composer-cache-directory.outputs.directory }}
41-
key: composer2-php:${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
42-
restore-keys: composer2-php:${{ matrix.php }}-
43-
- name: Ensure that composer cache directory exists
44-
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }}
35+
- name: Cache dependencies installed with composer
36+
uses: actions/cache@v3
37+
id: cache-composer
38+
with:
39+
path: ${{ steps.composer-cache-directory.outputs.directory }}
40+
key: composer2-php:${{ matrix.php }}-${{ github.sha }}
41+
restore-keys: composer2-php:${{ matrix.php }}-
4542

46-
- name: Composer Github Auth
47-
run: composer config -g github-oauth.github.com ${{ github.token }}
43+
- name: Ensure that composer cache directory exists
44+
run: mkdir -p ${{ steps.composer-cache-directory.outputs.directory }}
4845

49-
- name: Install PHP dependencies
50-
run: composer update --prefer-dist
46+
- name: Composer Github Auth
47+
run: composer config -g github-oauth.github.com ${{ github.token }}
5148

52-
- uses: symfonycorp/security-checker-action@v4
49+
- name: Install PHP dependencies
50+
run: composer update --prefer-dist
51+
52+
- uses: symfonycorp/security-checker-action@v4
5353

0 commit comments

Comments
 (0)