-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from maximehuran/feature/generate-test-applica…
…tion Generate test application automatically
- Loading branch information
Showing
112 changed files
with
858 additions
and
11,708 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,85 @@ | ||
name: Flex Recipe | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
recipe: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SYMFONY_ENDPOINT: http://127.0.0.1/ | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['7.4'] | ||
sylius: ['1.8.0', '1.9.0'] | ||
|
||
steps: | ||
- name: Setup PHP | ||
run: | | ||
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }} | ||
echo "date.timezone=UTC" >> /tmp/timezone.ini | ||
sudo mv /tmp/timezone.ini /etc/php/${{ matrix.php }}/cli/conf.d/timezone.ini | ||
echo ${{ matrix.php }} > .php-version | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: plugin | ||
|
||
# Run the server at the start so it can download the recipes! | ||
- name: Run standalone symfony flex server | ||
run: | | ||
echo ${{ github.token }} | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin | ||
docker run --rm --name flex -d -v $PWD/plugin/recipes:/var/www/flex/var/repo/private/monsieurbiz/sylius-menu-plugin -p 80:80 ghcr.io/monsieurbiz/docker/symfony-flex-server:latest contrib official | ||
docker ps | ||
- uses: actions/cache@v1 | ||
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 }}- | ||
|
||
- run: mkdir -p /home/runner/{.composer/cache,.config/composer} | ||
|
||
- name: Composer v2 | ||
run: sudo composer self-update --2 | ||
|
||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
|
||
- name: Install Sylius-Standard | ||
run: | | ||
composer create-project --prefer-dist --no-scripts --no-progress sylius/sylius-standard sylius "~${{ matrix.sylius }}" | ||
- name: Setup some requirements | ||
working-directory: ./sylius | ||
run: | | ||
composer config repositories.plugin '{"type": "path", "url": "../plugin/"}' | ||
composer config extra.symfony.allow-contrib true | ||
composer config secure-http false | ||
composer config --unset platform.php | ||
- name: Install plugin | ||
working-directory: ./sylius | ||
run: | | ||
composer require monsieurbiz/sylius-menu-plugin="*@dev" | ||
- name: Show flex server logs | ||
run: docker logs --tail 100 flex | ||
recipe: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SYMFONY_ENDPOINT: http://127.0.0.1/ | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
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 | ||
run: | | ||
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }} | ||
echo "date.timezone=UTC" >> /tmp/timezone.ini | ||
sudo mv /tmp/timezone.ini /etc/php/${{ matrix.php }}/cli/conf.d/timezone.ini | ||
echo ${{ matrix.php }} > .php-version | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: plugin | ||
|
||
# Run the server at the start so it can download the recipes! | ||
- name: Run standalone symfony flex server | ||
run: | | ||
echo ${{ github.token }} | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin | ||
docker run --rm --name flex -d -v $PWD/plugin/recipes:/var/www/flex/var/repo/private/monsieurbiz/sylius-menu-plugin -p 80:80 docker.pkg.github.com/monsieurbiz/docker/symfony-flex-server:latest contrib official | ||
docker ps | ||
- 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 }}-sylius:${{ matrix.sylius }}-${{ github.sha }} | ||
restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}- | ||
|
||
- name: Composer v2 | ||
run: sudo composer self-update --2 | ||
|
||
- 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 }}" | ||
- name: Setup some requirements | ||
working-directory: ./sylius | ||
run: | | ||
composer config repositories.plugin '{"type": "path", "url": "../plugin/"}' | ||
composer config extra.symfony.allow-contrib true | ||
composer config secure-http false | ||
composer config --unset platform.php | ||
- name: Require plugin without install | ||
working-directory: ./sylius | ||
run: | | ||
composer require --no-install --no-update monsieurbiz/sylius-menu-plugin="*@dev" | ||
- name: Composer install | ||
working-directory: ./sylius | ||
run: | | ||
composer install | ||
- name: Show flex server logs | ||
run: docker logs --tail 100 flex |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,48 @@ | ||
name: Security | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
security: | ||
security: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [7.4] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['7.4', '8.0'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
run: | | ||
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }} | ||
echo "date.timezone=UTC" | sudo tee /etc/php/${{ matrix.php }}/cli/conf.d/timezone.ini | ||
echo "${{ matrix.php }}" > .php-version | ||
- uses: actions/cache@v1 | ||
id: cache-composer | ||
with: | ||
path: /home/runner/.composer/cache | ||
key: composer-php:${{ matrix.php }}-${{ github.sha }} | ||
restore-keys: composer-php:${{ matrix.php }}- | ||
- name: Setup PHP | ||
run: | | ||
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }} | ||
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 }}- | ||
|
||
- name: Composer v2 | ||
run: sudo composer self-update --2 | ||
- run: mkdir -p /home/runner/{.composer/cache,.config/composer} | ||
if: steps.cache-composer.outputs.cache-hit != 'true' | ||
|
||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
- name: Composer v2 | ||
run: sudo composer self-update --2 | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
|
||
- name: Install PHP dependencies | ||
run: composer update --prefer-dist | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: symfonycorp/security-checker-action@v2 | ||
- name: Install PHP dependencies | ||
run: composer update --prefer-dist | ||
|
||
- uses: symfonycorp/security-checker-action@v2 |
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
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
Oops, something went wrong.