Skip to content

Commit

Permalink
Exclude duplicated migrations for Sylius 1.9 in GitHub Actions builds
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Feb 15, 2021
1 parent 2b31ead commit 3ae8c44
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ jobs:
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-composer-
-
name: Prepare migrations for Sylius 1.8
if: matrix.sylius == '~1.8.0'
run: |
cp etc/sylius/1.8/migrations/* tests/Application/src/Migrations/
-
name: Install Sylius version
run: |
Expand Down Expand Up @@ -142,11 +136,25 @@ jobs:
run: (cd tests/Application && yarn install)

-
name: Prepare test application database
name: Create test application database
run: |
(cd tests/Application && bin/console doctrine:database:create -vvv)
(cd tests/Application && bin/console doctrine:migrations:migrate -n -vvv -q)
-
name: Exclude duplicated migrations
if: matrix.sylius != '~1.8.0'
run: |
(cd tests/Application && bin/console doctrine:migration:sync-metadata-storage)
(cd tests/Application && bin/console doctrine:migrations:version 'Sylius\RefundPlugin\Migrations\Version20201130071338' --add)
(cd tests/Application && bin/console doctrine:migrations:version 'Sylius\RefundPlugin\Migrations\Version20201204071301' --add)
(cd tests/Application && bin/console doctrine:migrations:version 'Sylius\RefundPlugin\Migrations\Version20201208105207' --add)
-
name: Prepare test application database
run: |
(cd tests/Application && bin/console doctrine:migrations:migrate -n -vvv -q)
-
name: Prepare test application assets
run: |
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3ae8c44

Please sign in to comment.