Skip to content

Commit

Permalink
Merge pull request #12 from maximehuran/feature/generate-test-applica…
Browse files Browse the repository at this point in the history
…tion

Generate test application automatically
  • Loading branch information
maximehuran authored Nov 26, 2021
2 parents a6dba80 + cdad79a commit 4f29194
Show file tree
Hide file tree
Showing 140 changed files with 674 additions and 3,621 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches: [ master ]
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:

Expand All @@ -19,8 +17,13 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.4]
sylius: [1.8]
php: ['7.4' ,'8.0']
sylius: ["~1.8.0", "~1.9.0", "~1.10.0"]
exclude:
- php: 8.0
sylius: "~1.8.0"
- php: 8.0
sylius: "~1.9.0"

steps:
- name: Setup PHP
Expand Down Expand Up @@ -51,14 +54,14 @@ jobs:
restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-

- name: Composer v2
run: sudo composer self-update --2
run: sudo composer self-update --2

- name: Composer Github Auth
run: composer config -g github-oauth.github.com ${{ github.token }}

- name: Install Sylius-Standard
- name: Create Sylius-Standard project without install
run: |
composer create-project --prefer-dist --no-scripts --no-progress sylius/sylius-standard sylius "~${{ matrix.sylius }}.0"
composer create-project --prefer-dist --no-scripts --no-progress --no-install sylius/sylius-standard sylius "${{ matrix.sylius }}"
- name: Setup some requirements
working-directory: ./sylius
Expand All @@ -68,10 +71,15 @@ jobs:
composer config secure-http false
composer config --unset platform.php
- name: Install plugin
- name: Require plugin without install
working-directory: ./sylius
run: |
composer require monsieurbiz/sylius-shipping-slot-plugin="*@dev"
composer require --no-install --no-update monsieurbiz/sylius-shipping-slot-plugin="*@dev"
- name: Composer install
working-directory: ./sylius
run: |
composer install
- name: Show flex server logs
run: docker logs --tail 100 flex
11 changes: 5 additions & 6 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Security
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:

Expand All @@ -15,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.4]
php: ['7.4', '8.0']

steps:
- uses: actions/checkout@v2
Expand All @@ -26,23 +24,24 @@ jobs:
echo "date.timezone=UTC" | sudo tee /etc/php/${{ matrix.php }}/cli/conf.d/timezone.ini
echo "${{ matrix.php }}" > .php-version
- run: mkdir -p /home/runner/{.composer/cache,.config/composer}

- uses: actions/cache@v1
id: cache-composer
with:
path: /home/runner/.composer/cache
key: composer2-php:${{ matrix.php }}-${{ github.sha }}
restore-keys: composer2-php:${{ matrix.php }}-

- run: mkdir -p /home/runner/{.composer/cache,.config/composer}
if: steps.cache-composer.outputs.cache-hit != 'true'

- name: Composer v2
run: sudo composer self-update --2

- name: Composer Github Auth
run: composer config -g github-oauth.github.com ${{ github.token }}

- uses: actions/checkout@v2

- name: Install PHP dependencies
run: composer update --prefer-dist

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches: [ master ]
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:

Expand All @@ -16,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.4]
php: ['7.4', '8.0']

env:
SYMFONY_ARGS: --no-tls
Expand All @@ -37,15 +35,16 @@ jobs:
curl https://get.symfony.com/cli/installer | bash
echo "${HOME}/.symfony/bin" >> $GITHUB_PATH
- run: mkdir -p /home/runner/{.composer/cache,.config/composer}

- uses: actions/cache@v1
id: cache-composer
with:
path: /home/runner/.composer/cache
key: composer2-php:${{ matrix.php }}-${{ github.sha }}
restore-keys: composer2-php:${{ matrix.php }}-

- run: mkdir -p /home/runner/{.composer/cache,.config/composer}
if: steps.cache-composer.outputs.cache-hit != 'true'

- name: Composer v2
run: sudo composer self-update --2

Expand All @@ -62,13 +61,14 @@ jobs:

- run: make test.phpstan

- run: make test.phpmd

- run: make test.phpspec

- run: make test.yaml

- run: make test.twig

- run: make test.schema
continue-on-error: true # See https://github.com/Sylius/Sylius/pull/12413

#- run: make test.container
- run: make test.container
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/vendor/
/composer.lock
/symfony.lock

/etc/build/*
!/etc/build/.gitignore

/tests/Application/yarn.lock
/tests/Application/package-lock.json
/tests/Application/.php-version
/tests/Application

/behat.yml
/phpspec.yml

/package-lock.json

/.php-version
/php.ini
/.phpunit.result.cache
/node_modules
/yarn.lock
Loading

0 comments on commit 4f29194

Please sign in to comment.