|
1 |
| -name: Run checks |
| 1 | +name: Q&A |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | pull_request_target:
|
@@ -208,3 +208,49 @@ jobs:
|
208 | 208 | | sed 's/\(.*\):\([0-9]*\)$/\\n::error file=\1,line=\2::Symfony commands should not be wrapped in a Makefile/' || true)
|
209 | 209 |
|
210 | 210 | 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