Skip to content

Commit 425177e

Browse files
[GHA] Merge create-project into qa
1 parent 84a7aa3 commit 425177e

File tree

2 files changed

+47
-56
lines changed

2 files changed

+47
-56
lines changed

.github/workflows/create-project.yml

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

.github/workflows/qa.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run checks
1+
name: Q&A
22

33
on:
44
pull_request_target:
@@ -208,3 +208,49 @@ jobs:
208208
| sed 's/\(.*\):\([0-9]*\)$/\\n::error file=\1,line=\2::Symfony commands should not be wrapped in a Makefile/' || true)
209209
210210
if [[ "" != "$ERRORS" ]]; then echo -e "$ERRORS\n"; exit 1; fi
211+
212+
create-project:
213+
needs: tests
214+
name: Run updated recipes
215+
runs-on: Ubuntu-20.04
216+
217+
steps:
218+
-
219+
name: Setup PHP
220+
uses: shivammathur/setup-php@v2
221+
with:
222+
coverage: "none"
223+
php-version: "7.4"
224+
225+
-
226+
name: Export configuration
227+
continue-on-error: true
228+
id: config
229+
run: |
230+
PACKAGES=$(curl -s https://raw.githubusercontent.com/${{ github.repository }}/flex/pull-${{ github.event.number }}/index.json | jq -r '.recipes | to_entries | map(.key+":^"+.value[-1]) | join(" ")')
231+
echo PACKAGES=$PACKAGES >> $GITHUB_ENV
232+
[[ "" != "$PACKAGES" ]]
233+
234+
-
235+
name: Create-project with skeleton ^4
236+
if: "always() && steps.config.outcome == 'success'"
237+
run: |
238+
set -x
239+
composer create-project --ansi "symfony/skeleton:^4" v4
240+
cd v4
241+
composer config minimum-stability dev
242+
composer require --ansi "symfony/flex:^1.16"
243+
export SYMFONY_ENDPOINT=https://api.github.com/repos/${{ github.repository }}/contents/index.json?ref=flex/pull-${{ github.event.number }}
244+
composer require --ansi $PACKAGES
245+
246+
-
247+
name: Create-project with skeleton ^5
248+
if: "always() && steps.config.outcome == 'success'"
249+
run: |
250+
set -x
251+
composer create-project --ansi "symfony/skeleton:^5" v5
252+
cd v5
253+
composer config minimum-stability dev
254+
composer require --ansi "symfony/flex:^1.16"
255+
export SYMFONY_ENDPOINT=https://api.github.com/repos/${{ github.repository }}/contents/index.json?ref=flex/pull-${{ github.event.number }}
256+
composer require --ansi $PACKAGES

0 commit comments

Comments
 (0)