diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2f5a2cd..b3549762 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,15 +69,13 @@ jobs: mysql version: "${{ matrix.mysql }}" mysql root password: "root" - - - name: Remove wkhtmltopdf binary - if: matrix.pdf == false - run: rm tests/Application/etc/wkhtmltopdf - - name: Disable PDF generation if: matrix.pdf == false - run: mv tests/Application/etc/sylius_invoicing_pdf_generation_disabled.yaml tests/Application/config/packages + run: | + rm tests/Application/etc/wkhtmltopdf + mv tests/Application/etc/sylius_invoicing_pdf_generation_disabled.yaml tests/Application/config/packages + sed -i 's/pdf_generation_disabled/pdf_generation_enabled/g' behat.yml.dist - name: Get Composer cache directory @@ -163,11 +161,6 @@ jobs: name: Run PHPUnit run: vendor/bin/phpunit --colors=always - - - name: Replace excluded directory in Behat - if: matrix.pdf == false - run: sed -i 's/pdf_generation_disabled/pdf_generation_enabled/g' behat.yml.dist - - name: Run Behat run: vendor/bin/behat --colors --strict -vvv --no-interaction -f progress || vendor/bin/behat --colors --strict -vvv --no-interaction -f progress --rerun