From 524629c8fa6c5e940b2c11045e1048ef7a31f7b2 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:19:49 +0100 Subject: [PATCH 01/42] Create main.yml --- .github/workflows/main.yml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..1accbabb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,44 @@ +name: CI + +on: [push, pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + + services: + mysql: + images: mysql + + strategy: + matrix: + php: [7.1] + + steps: + - name: Checkout code + uses: actions/checkout@v1 + + - name: Setup PHP + uses: shivammathur/setup-php@v1 + with: + php-version: ${{ matrix.php }} + extensions: mbstring, php-xml, ext-dom + coverage: none + + - name: Install Demo + run: | + git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests + git --git-dir framework-tests/.git log -n 1 + mysql -e "create database symfony_test;" + php framework-tests/app/console doctrine:schema:create -n --env test + php framework-tests/app/console doctrine:fixtures:load -n --env test + php framework-tests/bin/console doctrine:schema:update --force -n + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + + - name: Run test suite + run: php ./vendor/bin/codecept run functional -c framework-tests From 75c131b4d7edeae4fe984a822bac467fed7e1bac Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:21:41 +0100 Subject: [PATCH 02/42] Update main.yml --- .github/workflows/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1accbabb..cbb00309 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,13 +26,13 @@ jobs: coverage: none - name: Install Demo - run: | - git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests - git --git-dir framework-tests/.git log -n 1 - mysql -e "create database symfony_test;" - php framework-tests/app/console doctrine:schema:create -n --env test - php framework-tests/app/console doctrine:fixtures:load -n --env test - php framework-tests/bin/console doctrine:schema:update --force -n + run: | + git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests + git --git-dir framework-tests/.git log -n 1 + mysql -e "create database symfony_test;" + php framework-tests/app/console doctrine:schema:create -n --env test + php framework-tests/app/console doctrine:fixtures:load -n --env test + php framework-tests/bin/console doctrine:schema:update --force -n - name: Validate composer.json and composer.lock run: composer validate From 8d01e18118d5603d3ca7342ece669081778e184c Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:22:31 +0100 Subject: [PATCH 03/42] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cbb00309..dc50f63c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: services: mysql: - images: mysql + image: mysql strategy: matrix: From 121e301f0a3d03ea8f96dcbcfec1d0c830e55046 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:25:10 +0100 Subject: [PATCH 04/42] Update main.yml --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc50f63c..a257601c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,8 @@ jobs: services: mysql: image: mysql + ports: + - 3306 strategy: matrix: From 2a1ea45dd17b9cfe9858c66031a37af0add10e71 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:27:46 +0100 Subject: [PATCH 05/42] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a257601c..14292767 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: uses: shivammathur/setup-php@v1 with: php-version: ${{ matrix.php }} - extensions: mbstring, php-xml, ext-dom + extensions: mbstring, php-xml, ext-dom, pdo, mysql, pdo_mysql coverage: none - name: Install Demo From aa99b69019f7ddecf7e7c20fddd547af72818596 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:31:10 +0100 Subject: [PATCH 06/42] Update main.yml --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 14292767..3616af9b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,8 +9,12 @@ jobs: services: mysql: image: mysql + env: + MYSQL_ALLOW_EMPTY_PASSWORD: yes + MYSQL_DATABASE: laravel_tags ports: - 3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 strategy: matrix: From d25efda88488e90ac6d28c4ee3725a1426197969 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:34:10 +0100 Subject: [PATCH 07/42] Update main.yml --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3616af9b..492838e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,8 +33,6 @@ jobs: - name: Install Demo run: | - git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests - git --git-dir framework-tests/.git log -n 1 mysql -e "create database symfony_test;" php framework-tests/app/console doctrine:schema:create -n --env test php framework-tests/app/console doctrine:fixtures:load -n --env test From 4402fed2122b6c00b848d3e79fefa71ab81297f3 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:36:06 +0100 Subject: [PATCH 08/42] Update main.yml --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 492838e6..ad68aab4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: image: mysql env: MYSQL_ALLOW_EMPTY_PASSWORD: yes - MYSQL_DATABASE: laravel_tags + MYSQL_DATABASE: symfony_test ports: - 3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 @@ -33,7 +33,6 @@ jobs: - name: Install Demo run: | - mysql -e "create database symfony_test;" php framework-tests/app/console doctrine:schema:create -n --env test php framework-tests/app/console doctrine:fixtures:load -n --env test php framework-tests/bin/console doctrine:schema:update --force -n From e163384aa752c00ff369816e41bb9eeabf5a5a16 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 28 Mar 2020 17:38:21 +0100 Subject: [PATCH 09/42] Update main.yml --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ad68aab4..2ad20a11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,8 @@ jobs: - name: Install Demo run: | + git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests + git --git-dir framework-tests/.git log -n 1 php framework-tests/app/console doctrine:schema:create -n --env test php framework-tests/app/console doctrine:fixtures:load -n --env test php framework-tests/bin/console doctrine:schema:update --force -n From f772ae39b876f35405479fc7efeb939414f73345 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Thu, 9 Apr 2020 14:11:47 +0200 Subject: [PATCH 10/42] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ad20a11..02b0360b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - php: [7.1] + php: [7.3] steps: - name: Checkout code From 5c1e51da82226dbd19d206b5216356b5a9740590 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Thu, 9 Apr 2020 14:19:38 +0200 Subject: [PATCH 11/42] Update main.yml --- .github/workflows/main.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02b0360b..73e82e49 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - php: [7.3] + php: [7.1] steps: - name: Checkout code @@ -35,9 +35,13 @@ jobs: run: | git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests git --git-dir framework-tests/.git log -n 1 - php framework-tests/app/console doctrine:schema:create -n --env test - php framework-tests/app/console doctrine:fixtures:load -n --env test - php framework-tests/bin/console doctrine:schema:update --force -n + composer require symfony/finder=~5 --no-update --ignore-platform-reqs + composer require symfony/yaml=~5 --no-update --ignore-platform-reqs + composer require symfony/console=~5 --no-update --ignore-platform-reqs + composer require symfony/event-dispatcher=~5 --no-update --ignore-platform-reqs + composer require symfony/css-selector=~5 --no-update --ignore-platform-reqs + composer require symfony/dom-crawler=~5 --no-update --ignore-platform-reqs + composer require symfony/browser-kit=~5 --no-update --ignore-platform-reqs - name: Validate composer.json and composer.lock run: composer validate @@ -46,4 +50,8 @@ jobs: run: composer install --prefer-dist --no-progress --no-suggest - name: Run test suite - run: php ./vendor/bin/codecept run functional -c framework-tests + run: | + php framework-tests/app/console doctrine:schema:create -n --env test + php framework-tests/app/console doctrine:fixtures:load -n --env test + php framework-tests/bin/console doctrine:schema:update --force -n + php ./vendor/bin/codecept run functional -c framework-tests From 9430faa71bfc427947459fcf33831b7f7daae37c Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Thu, 9 Apr 2020 14:24:36 +0200 Subject: [PATCH 12/42] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73e82e49..a9467f85 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - php: [7.1] + php: [7.2] steps: - name: Checkout code From 2bd1131c5660c6266dc1c4a6954c641b9ed326da Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Thu, 9 Apr 2020 19:24:59 +0200 Subject: [PATCH 13/42] Update main.yml --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a9467f85..a4193783 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,10 +47,17 @@ jobs: run: composer validate - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-suggest + run: | + composer install --prefer-dist --no-progress --no-suggest + ls + ls framework-tests + ls framework-tests/app - name: Run test suite run: | + ls + ls framework-tests + ls framework-tests/app php framework-tests/app/console doctrine:schema:create -n --env test php framework-tests/app/console doctrine:fixtures:load -n --env test php framework-tests/bin/console doctrine:schema:update --force -n From ffd64cc71ab0ccdaf4a21cde86d83b2a567e78ec Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Thu, 9 Apr 2020 19:29:47 +0200 Subject: [PATCH 14/42] Update main.yml --- .github/workflows/main.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a4193783..77843f04 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,16 +49,10 @@ jobs: - name: Install dependencies run: | composer install --prefer-dist --no-progress --no-suggest - ls - ls framework-tests - ls framework-tests/app - name: Run test suite run: | - ls - ls framework-tests - ls framework-tests/app - php framework-tests/app/console doctrine:schema:create -n --env test - php framework-tests/app/console doctrine:fixtures:load -n --env test + php framework-tests/bin/console doctrine:schema:create -n --env test + php framework-tests/bin/console doctrine:fixtures:load -n --env test php framework-tests/bin/console doctrine:schema:update --force -n php ./vendor/bin/codecept run functional -c framework-tests From 11f365f3ca81f6f26a799f41a09f4495f9345b48 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Thu, 9 Apr 2020 19:35:06 +0200 Subject: [PATCH 15/42] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 77843f04..3eb9192c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,7 @@ jobs: run: | git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests git --git-dir framework-tests/.git log -n 1 + composer update -d framework-tests --no-dev --prefer-dist --no-interaction composer require symfony/finder=~5 --no-update --ignore-platform-reqs composer require symfony/yaml=~5 --no-update --ignore-platform-reqs composer require symfony/console=~5 --no-update --ignore-platform-reqs From ef719934826ed59d7964cd204e1df78f807280d4 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Thu, 9 Apr 2020 19:50:57 +0200 Subject: [PATCH 16/42] Update main.yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3eb9192c..8cedd357 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,7 +53,7 @@ jobs: - name: Run test suite run: | - php framework-tests/bin/console doctrine:schema:create -n --env test - php framework-tests/bin/console doctrine:fixtures:load -n --env test - php framework-tests/bin/console doctrine:schema:update --force -n + #php framework-tests/bin/console doctrine:schema:create -n --env test + #php framework-tests/bin/console doctrine:fixtures:load -n --env test + #php framework-tests/bin/console doctrine:schema:update --force -n php ./vendor/bin/codecept run functional -c framework-tests From 595040769bd162b4ec18a235452aebfd776dd25f Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 13:36:14 +0200 Subject: [PATCH 17/42] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8cedd357..4fc63815 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - php: [7.2] + php: [7.2, 7.3, 7.4] steps: - name: Checkout code From 04755422b9cc4306936269345db5aa96a6eb3da3 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 13:39:49 +0200 Subject: [PATCH 18/42] Update main.yml --- .github/workflows/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4fc63815..70ac69da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,7 @@ jobs: strategy: matrix: php: [7.2, 7.3, 7.4] + symfony: [5] steps: - name: Checkout code @@ -36,13 +37,13 @@ jobs: git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests git --git-dir framework-tests/.git log -n 1 composer update -d framework-tests --no-dev --prefer-dist --no-interaction - composer require symfony/finder=~5 --no-update --ignore-platform-reqs - composer require symfony/yaml=~5 --no-update --ignore-platform-reqs - composer require symfony/console=~5 --no-update --ignore-platform-reqs - composer require symfony/event-dispatcher=~5 --no-update --ignore-platform-reqs - composer require symfony/css-selector=~5 --no-update --ignore-platform-reqs - composer require symfony/dom-crawler=~5 --no-update --ignore-platform-reqs - composer require symfony/browser-kit=~5 --no-update --ignore-platform-reqs + composer require "symfony/finder=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs + composer require "symfony/yaml=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs + composer require "symfony/console=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs + composer require "symfony/event-dispatcher=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs + composer require "symfony/css-selector=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs + composer require "symfony/dom-crawler=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs + composer require "symfony/browser-kit=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs - name: Validate composer.json and composer.lock run: composer validate From 4dccd1ce187d4414d87e4e406c9614c24d698f05 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 13:46:20 +0200 Subject: [PATCH 19/42] Update main.yml --- .github/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70ac69da..904d9b60 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: php: [7.2, 7.3, 7.4] - symfony: [5] + symfony: [4, 5] steps: - name: Checkout code @@ -31,11 +31,17 @@ jobs: php-version: ${{ matrix.php }} extensions: mbstring, php-xml, ext-dom, pdo, mysql, pdo_mysql coverage: none - + + - name: Clone Symfony 5 Demo + if: matrix.symfony == 5 + run: git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests + + - name: Clone Symfony 4 Demo + if: matrix.symfony == 4 + run: git clone -q --depth=1 https://github.com/Codeception/symfony-demo.git framework-tests + - name: Install Demo run: | - git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests - git --git-dir framework-tests/.git log -n 1 composer update -d framework-tests --no-dev --prefer-dist --no-interaction composer require "symfony/finder=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs composer require "symfony/yaml=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs From d6215d5dd95903bb0caab72057d629f96597413e Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 13:55:17 +0200 Subject: [PATCH 20/42] Update main.yml --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 904d9b60..c86ba5c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,8 +18,11 @@ jobs: strategy: matrix: - php: [7.2, 7.3, 7.4] + php: [7.1, 7.2, 7.3, 7.4] symfony: [4, 5] + exclude: + - php: 7.1 + symfony: 5 steps: - name: Checkout code From ae523aaafe6f33caa9892c190b6c8792344ad980 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 13:58:19 +0200 Subject: [PATCH 21/42] Update main.yml --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c86ba5c8..e955650c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,13 @@ jobs: strategy: matrix: - php: [7.1, 7.2, 7.3, 7.4] + php: [7.0, 7.1, 7.2, 7.3, 7.4] symfony: [4, 5] exclude: + - php: 7.0 + symfony: 4 + - php: 7.0 + symfony: 5 - php: 7.1 symfony: 5 From 0f58cd5636105502a519b0c77322376983447fe8 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:01:18 +0200 Subject: [PATCH 22/42] Update main.yml --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e955650c..335790b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: php: [7.0, 7.1, 7.2, 7.3, 7.4] - symfony: [4, 5] + symfony: [3.4, 4, 5] exclude: - php: 7.0 symfony: 4 @@ -39,6 +39,10 @@ jobs: extensions: mbstring, php-xml, ext-dom, pdo, mysql, pdo_mysql coverage: none + - name: Clone Symfony 3.4 Demo + if: matrix.symfony == 3.4 + run: git clone -q --depth=1 --recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests framework-tests + - name: Clone Symfony 5 Demo if: matrix.symfony == 5 run: git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests From 15e068274231b78a8045fd6eb437a3f18763ee86 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:06:27 +0200 Subject: [PATCH 23/42] Update main.yml --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 335790b7..a7fd6e1b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,10 @@ jobs: php: [7.0, 7.1, 7.2, 7.3, 7.4] symfony: [3.4, 4, 5] exclude: + - php: 7.3 + symfony: 3.4 + - php: 7.4 + symfony: 3.4 - php: 7.0 symfony: 4 - php: 7.0 From e7e0f265fed5b2d109edcab0dbe4823822164604 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:13:27 +0200 Subject: [PATCH 24/42] Update main.yml --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a7fd6e1b..b4befd8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -73,6 +73,10 @@ jobs: run: | composer install --prefer-dist --no-progress --no-suggest + - name: Database + if: matrix.symfony == 3.4 + run: php framework-tests/bin/console doctrine:schema:update --force -n + - name: Run test suite run: | #php framework-tests/bin/console doctrine:schema:create -n --env test From 6c41c5260780b72e5debb24fa14de98497b0c21c Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:22:27 +0200 Subject: [PATCH 25/42] Update main.yml --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4befd8d..34c169e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_DATABASE: symfony_test ports: - - 3306 + - 3306:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 strategy: @@ -76,6 +76,12 @@ jobs: - name: Database if: matrix.symfony == 3.4 run: php framework-tests/bin/console doctrine:schema:update --force -n + env: + database_host: 127.0.0.1 + database_port: 3306 + database_name: symfony_test + database_user: root + database_password: '' - name: Run test suite run: | From c188b4a43326c4b4f9eec104d4ead9952fedb79b Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:29:37 +0200 Subject: [PATCH 26/42] Update main.yml --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34c169e5..9b8c03c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -75,7 +75,10 @@ jobs: - name: Database if: matrix.symfony == 3.4 - run: php framework-tests/bin/console doctrine:schema:update --force -n + run: | + cat framework-tests/app/config/config.yml + mysql -h $database_host -u $database_user -e "show databases;" + php framework-tests/bin/console doctrine:schema:update --force -n env: database_host: 127.0.0.1 database_port: 3306 From a839ffaa023c532d69b593d615f46e7f16073f87 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:44:41 +0200 Subject: [PATCH 27/42] Update main.yml --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b8c03c9..d47e66a4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,6 +76,11 @@ jobs: - name: Database if: matrix.symfony == 3.4 run: | + sed -i -e "s/%database_host%/127.0.0.1/g" framework-tests/app/config/config.yml + sed -i -e "s/%database_port%/3306/g" framework-tests/app/config/config.yml + sed -i -e "s/%database_name%/symfony_test/g" framework-tests/app/config/config.yml + sed -i -e "s/%database_user%/root/g" framework-tests/app/config/config.yml + sed -i -e "s/%database_password%//g" framework-tests/app/config/config.yml cat framework-tests/app/config/config.yml mysql -h $database_host -u $database_user -e "show databases;" php framework-tests/bin/console doctrine:schema:update --force -n From d3b8013bec19fb694399d271140d50cabd75d512 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:49:34 +0200 Subject: [PATCH 28/42] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d47e66a4..b2309b3c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: services: mysql: - image: mysql + image: mysql:5.7 env: MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_DATABASE: symfony_test From 23312561fbf4d36907da0d1b1b62d4fbb0402407 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:53:47 +0200 Subject: [PATCH 29/42] Update main.yml --- .github/workflows/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b2309b3c..365a8137 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,13 +76,13 @@ jobs: - name: Database if: matrix.symfony == 3.4 run: | - sed -i -e "s/%database_host%/127.0.0.1/g" framework-tests/app/config/config.yml - sed -i -e "s/%database_port%/3306/g" framework-tests/app/config/config.yml - sed -i -e "s/%database_name%/symfony_test/g" framework-tests/app/config/config.yml - sed -i -e "s/%database_user%/root/g" framework-tests/app/config/config.yml - sed -i -e "s/%database_password%//g" framework-tests/app/config/config.yml - cat framework-tests/app/config/config.yml - mysql -h $database_host -u $database_user -e "show databases;" + #sed -i -e "s/%database_host%/127.0.0.1/g" framework-tests/app/config/config.yml + #sed -i -e "s/%database_port%/3306/g" framework-tests/app/config/config.yml + #sed -i -e "s/%database_name%/symfony_test/g" framework-tests/app/config/config.yml + #sed -i -e "s/%database_user%/root/g" framework-tests/app/config/config.yml + #sed -i -e "s/%database_password%//g" framework-tests/app/config/config.yml + #cat framework-tests/app/config/config.yml + #mysql -h $database_host -u $database_user -e "show databases;" php framework-tests/bin/console doctrine:schema:update --force -n env: database_host: 127.0.0.1 From 50b603640e70ba4e79bdf170d4bd1cf9c378c130 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 14:57:28 +0200 Subject: [PATCH 30/42] Update main.yml --- .github/workflows/main.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 365a8137..1ece05df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,20 +76,12 @@ jobs: - name: Database if: matrix.symfony == 3.4 run: | - #sed -i -e "s/%database_host%/127.0.0.1/g" framework-tests/app/config/config.yml - #sed -i -e "s/%database_port%/3306/g" framework-tests/app/config/config.yml - #sed -i -e "s/%database_name%/symfony_test/g" framework-tests/app/config/config.yml - #sed -i -e "s/%database_user%/root/g" framework-tests/app/config/config.yml - #sed -i -e "s/%database_password%//g" framework-tests/app/config/config.yml - #cat framework-tests/app/config/config.yml - #mysql -h $database_host -u $database_user -e "show databases;" + sed -i -e "s/%database_host%/127.0.0.1/g" framework-tests/app/config/config.yml + sed -i -e "s/%database_port%/3306/g" framework-tests/app/config/config.yml + sed -i -e "s/%database_name%/symfony_test/g" framework-tests/app/config/config.yml + sed -i -e "s/%database_user%/root/g" framework-tests/app/config/config.yml + sed -i -e "s/%database_password%//g" framework-tests/app/config/config.yml php framework-tests/bin/console doctrine:schema:update --force -n - env: - database_host: 127.0.0.1 - database_port: 3306 - database_name: symfony_test - database_user: root - database_password: '' - name: Run test suite run: | From 32685fb6743a16f20af2fbcee22bdc963779fd16 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 15:02:51 +0200 Subject: [PATCH 31/42] Update main.yml --- .github/workflows/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ece05df..2bbbb3a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,15 +18,23 @@ jobs: strategy: matrix: - php: [7.0, 7.1, 7.2, 7.3, 7.4] - symfony: [3.4, 4, 5] + php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4] + symfony: [2.8, 3.4, 4, 5] exclude: + - php: 7.* + symfony: 2.8 + - php: 5.6 + symfony: 3.4 - php: 7.3 symfony: 3.4 - php: 7.4 symfony: 3.4 + - php: 5.6 + symfony: 4 - php: 7.0 symfony: 4 + - php: 5.6 + symfony: 5 - php: 7.0 symfony: 5 - php: 7.1 From 5b9e125dd4eba6407a4f8dde30554e8b9b0aca97 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 15:05:28 +0200 Subject: [PATCH 32/42] Update main.yml --- .github/workflows/main.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2bbbb3a2..f1d39b9e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,15 @@ jobs: php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4] symfony: [2.8, 3.4, 4, 5] exclude: - - php: 7.* + - php: 7.0 + symfony: 2.8 + - php: 7.1 + symfony: 2.8 + - php: 7.2 + symfony: 2.8 + - php: 7.3 + symfony: 2.8 + - php: 7.4 symfony: 2.8 - php: 5.6 symfony: 3.4 @@ -51,6 +59,10 @@ jobs: extensions: mbstring, php-xml, ext-dom, pdo, mysql, pdo_mysql coverage: none + - name: Clone Symfony 2.8 Demo + if: matrix.symfony == 2.8 + run: git clone -q --depth=1 -b 2.1 https://github.com/Codeception/symfony-demo.git framework-tests + - name: Clone Symfony 3.4 Demo if: matrix.symfony == 3.4 run: git clone -q --depth=1 --recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests framework-tests From 9fdc9797e03e794226e708bacdf1be8245ca61a9 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 15:13:00 +0200 Subject: [PATCH 33/42] Update main.yml --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1d39b9e..f250f685 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -93,7 +93,13 @@ jobs: run: | composer install --prefer-dist --no-progress --no-suggest - - name: Database + - name: Database Symfony 2.8 + if: matrix.symfony == 2.8 + run: | + php framework-tests/app/console doctrine:schema:create -n --env test + php framework-tests/app/console doctrine:fixtures:load -n --env test + + - name: Database Symfony 3.4 if: matrix.symfony == 3.4 run: | sed -i -e "s/%database_host%/127.0.0.1/g" framework-tests/app/config/config.yml From 213fee076d150cc95deb31105ed314565dde0847 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 15:17:20 +0200 Subject: [PATCH 34/42] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f250f685..f91941aa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,7 +56,7 @@ jobs: uses: shivammathur/setup-php@v1 with: php-version: ${{ matrix.php }} - extensions: mbstring, php-xml, ext-dom, pdo, mysql, pdo_mysql + extensions: mbstring, php-xml, ext-dom, pdo, mysql, pdo_mysql, pdo_sqlite coverage: none - name: Clone Symfony 2.8 Demo From fc5123d4459fa88ce75c9b3c31a23fdcff04e2dd Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 15:34:41 +0200 Subject: [PATCH 35/42] Update main.yml --- .github/workflows/main.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f91941aa..5cd7cabf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -110,8 +110,10 @@ jobs: php framework-tests/bin/console doctrine:schema:update --force -n - name: Run test suite - run: | - #php framework-tests/bin/console doctrine:schema:create -n --env test - #php framework-tests/bin/console doctrine:fixtures:load -n --env test - #php framework-tests/bin/console doctrine:schema:update --force -n - php ./vendor/bin/codecept run functional -c framework-tests + if: matrix.symfony != 2.8 + run: php ./vendor/bin/codecept run functional -c framework-tests + + - name: Run test suite + if: matrix.symfony == 2.8 + run: php ./vendor/bin/codecept run functional -c framework-tests/src/AppBundle + From 3a6a458374049b0749b751df50e270ad0feb4385 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Fri, 10 Apr 2020 15:42:07 +0200 Subject: [PATCH 36/42] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5cd7cabf..2df35be0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -109,11 +109,11 @@ jobs: sed -i -e "s/%database_password%//g" framework-tests/app/config/config.yml php framework-tests/bin/console doctrine:schema:update --force -n - - name: Run test suite + - name: Run test suite Symfony > 2.8 if: matrix.symfony != 2.8 run: php ./vendor/bin/codecept run functional -c framework-tests - - name: Run test suite + - name: Run test suite Symfony 2.8 if: matrix.symfony == 2.8 run: php ./vendor/bin/codecept run functional -c framework-tests/src/AppBundle From 0cb1282ed4891777fbfa9ab070d9ba67608a317b Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 11 Apr 2020 10:19:12 +0200 Subject: [PATCH 37/42] Update main.yml --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2df35be0..2e2fca2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -90,8 +90,7 @@ jobs: run: composer validate - name: Install dependencies - run: | - composer install --prefer-dist --no-progress --no-suggest + run: composer install --prefer-dist --no-progress --no-interaction --no-suggest - name: Database Symfony 2.8 if: matrix.symfony == 2.8 From 63ba577ee38bf99c7cb8226008e92e52c5765ad5 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 11 Apr 2020 22:54:48 +0200 Subject: [PATCH 38/42] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2e2fca2f..453791ac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v1 From 30dd04ed66e36e3e98f54d440deb1e4f8148097a Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sat, 11 Apr 2020 23:25:53 +0200 Subject: [PATCH 39/42] Update main.yml --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 453791ac..489f1ae8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,21 +59,36 @@ jobs: extensions: mbstring, php-xml, ext-dom, pdo, mysql, pdo_mysql, pdo_sqlite coverage: none - - name: Clone Symfony 2.8 Demo + - name: Checkout Symfony 2.8 Demo if: matrix.symfony == 2.8 - run: git clone -q --depth=1 -b 2.1 https://github.com/Codeception/symfony-demo.git framework-tests + uses: actions/checkout@v2 + with: + repository: Codeception/symfony-demo + path: framework-tests + ref: 2.1 - - name: Clone Symfony 3.4 Demo + - name: Checkout Symfony 3.4 Demo if: matrix.symfony == 3.4 - run: git clone -q --depth=1 --recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests framework-tests - - - name: Clone Symfony 5 Demo - if: matrix.symfony == 5 - run: git clone -q --depth=1 -b symfony5 https://github.com/Codeception/symfony-demo.git framework-tests + uses: actions/checkout@v2 + with: + repository: Naktibalda/codeception-symfony-tests + path: framework-tests + submodules: recursive - - name: Clone Symfony 4 Demo + - name: Checkout Symfony 4 Demo if: matrix.symfony == 4 - run: git clone -q --depth=1 https://github.com/Codeception/symfony-demo.git framework-tests + uses: actions/checkout@v2 + with: + repository: Codeception/symfony-demo + path: framework-tests + + - name: Checkout Symfony 5 Demo + if: matrix.symfony == 5 + uses: actions/checkout@v2 + with: + repository: Codeception/symfony-demo + path: framework-tests + ref: symfony5 - name: Install Demo run: | From c7f7cb1d74e824dcf317d0bb2366be6764b5794e Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sun, 12 Apr 2020 00:09:24 +0200 Subject: [PATCH 40/42] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 489f1ae8..0c1c6d1a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,10 +53,10 @@ jobs: uses: actions/checkout@v2 - name: Setup PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: mbstring, php-xml, ext-dom, pdo, mysql, pdo_mysql, pdo_sqlite + extensions: pdo, mysql, sqlite coverage: none - name: Checkout Symfony 2.8 Demo From fc9251752364cf5a4e7444c28701abd0f111d809 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sun, 12 Apr 2020 01:11:04 +0200 Subject: [PATCH 41/42] Update composer.json --- composer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/composer.json b/composer.json index 087ced98..98c6649a 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,6 @@ } ], "minimum-stability": "RC", - "require": { "php": ">=5.6.0 <8.0", "codeception/lib-innerbrowser": "^1.0", From 378fb96f7ab4241944100f2f98f7576acc7904e8 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sun, 12 Apr 2020 01:17:04 +0200 Subject: [PATCH 42/42] Update main.yml --- .github/workflows/main.yml | 56 ++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c1c6d1a..4f41c60c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,11 +10,15 @@ jobs: mysql: image: mysql:5.7 env: - MYSQL_ALLOW_EMPTY_PASSWORD: yes + MYSQL_ALLOW_EMPTY_PASSWORD: true MYSQL_DATABASE: symfony_test ports: - 3306:3306 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + options: >- + --health-cmd "mysqladmin ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 strategy: matrix: @@ -59,7 +63,7 @@ jobs: extensions: pdo, mysql, sqlite coverage: none - - name: Checkout Symfony 2.8 Demo + - name: Checkout Symfony 2.8 Sample if: matrix.symfony == 2.8 uses: actions/checkout@v2 with: @@ -67,7 +71,7 @@ jobs: path: framework-tests ref: 2.1 - - name: Checkout Symfony 3.4 Demo + - name: Checkout Symfony 3.4 Sample if: matrix.symfony == 3.4 uses: actions/checkout@v2 with: @@ -75,14 +79,14 @@ jobs: path: framework-tests submodules: recursive - - name: Checkout Symfony 4 Demo + - name: Checkout Symfony 4 Sample if: matrix.symfony == 4 uses: actions/checkout@v2 with: repository: Codeception/symfony-demo path: framework-tests - - name: Checkout Symfony 5 Demo + - name: Checkout Symfony 5 Sample if: matrix.symfony == 5 uses: actions/checkout@v2 with: @@ -90,9 +94,16 @@ jobs: path: framework-tests ref: symfony5 - - name: Install Demo + - name: Install Symfony Sample + run: | + composer update --no-dev --prefer-dist --no-interaction + working-directory: framework-tests + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies run: | - composer update -d framework-tests --no-dev --prefer-dist --no-interaction composer require "symfony/finder=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs composer require "symfony/yaml=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs composer require "symfony/console=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs @@ -100,34 +111,31 @@ jobs: composer require "symfony/css-selector=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs composer require "symfony/dom-crawler=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs composer require "symfony/browser-kit=~${{ matrix.symfony }}" --no-update --ignore-platform-reqs - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-interaction --no-suggest + composer install --prefer-dist --no-progress --no-interaction --no-suggest - name: Database Symfony 2.8 if: matrix.symfony == 2.8 run: | - php framework-tests/app/console doctrine:schema:create -n --env test - php framework-tests/app/console doctrine:fixtures:load -n --env test + php app/console doctrine:schema:create -n --env test + php app/console doctrine:fixtures:load -n --env test + working-directory: framework-tests - name: Database Symfony 3.4 if: matrix.symfony == 3.4 run: | - sed -i -e "s/%database_host%/127.0.0.1/g" framework-tests/app/config/config.yml - sed -i -e "s/%database_port%/3306/g" framework-tests/app/config/config.yml - sed -i -e "s/%database_name%/symfony_test/g" framework-tests/app/config/config.yml - sed -i -e "s/%database_user%/root/g" framework-tests/app/config/config.yml - sed -i -e "s/%database_password%//g" framework-tests/app/config/config.yml - php framework-tests/bin/console doctrine:schema:update --force -n + sed -i -e "s/%database_host%/127.0.0.1/g" app/config/config.yml + sed -i -e "s/%database_port%/3306/g" app/config/config.yml + sed -i -e "s/%database_name%/symfony_test/g" app/config/config.yml + sed -i -e "s/%database_user%/root/g" app/config/config.yml + sed -i -e "s/%database_password%//g" app/config/config.yml + php bin/console doctrine:schema:update --force -n + working-directory: framework-tests - name: Run test suite Symfony > 2.8 if: matrix.symfony != 2.8 - run: php ./vendor/bin/codecept run functional -c framework-tests + run: php vendor/bin/codecept run functional -c framework-tests - name: Run test suite Symfony 2.8 if: matrix.symfony == 2.8 - run: php ./vendor/bin/codecept run functional -c framework-tests/src/AppBundle + run: php vendor/bin/codecept run functional -c framework-tests/src/AppBundle