PR 85 (spryker-sdk/spryk-src) spryk.phar update #761
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
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
TESTING: true | |
jobs: | |
validation: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: [ | |
'8.3' | |
] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
ini-values: error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT, phar.readonly=1 | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl, pdo_mysql | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Composer cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Composer install | |
run: composer install --no-interaction -o | |
- name: Install ErrorHandler | |
run: composer require errors/exceptions -o | |
- name: Run build command | |
run: php bin/spryk-build | |
- name: Run dump command | |
run: php bin/spryk-dump | |
- name: Run Spryk commands | |
run: | | |
php bin/spryk-run AddAppRegistry --mode project --organization Pyz --module Ay -n -vvv | |
php bin/spryk-run AddCrudFacade --mode project --organization Pyz --module Ay --domainEntity Entity -n -vvv | |
php bin/spryk-run AddGlueResourceMethodResponse --mode project --organization Pyz --resource=/foo-bars --httpMethod get --httpResponseCode 200 -n -vvv |