-
Notifications
You must be signed in to change notification settings - Fork 8
80 lines (65 loc) · 2.62 KB
/
recipe.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Flex Recipe
on:
push:
branches: [ master ]
pull_request:
jobs:
recipe:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1']
sylius: ['~1.9.0', '~1.10.0', '~1.11.0', '~1.12.0']
exclude:
- php: '8.0'
sylius: '~1.9.0'
- php: '8.1'
sylius: '~1.9.0'
- php: '7.4'
sylius: '~1.11.0'
- php: '7.4'
sylius: '~1.12.0'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: date.timezone=UTC
- name: Set project php-version
run: |
echo ${{ matrix.php }} > .php-version
- uses: actions/checkout@v3
with:
path: plugin
- run: mkdir -p /home/runner/{.composer/cache,.config/composer}
- uses: actions/cache@v3
id: cache-composer
with:
path: /home/runner/.composer/cache
key: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-${{ github.sha }}
restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-
- 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
working-directory: ./sylius
run: |
composer require monsieurbiz/sylius-no-commerce-plugin="*@dev"