Skip to content

Commit

Permalink
[GitHub Actions] Merge steps for disabling PDF generation into one
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Apr 27, 2022
1 parent acfa44c commit af16a2e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit af16a2e

Please sign in to comment.