From 430a334635e4f72684408777e907e3581f6d9891 Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Mon, 10 Jun 2024 15:19:11 +0200 Subject: [PATCH] build: run weasyprint integration tests during build process --- .github/workflows/maven-release.yml | 4 +--- pom.xml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index fd76270..c55b951 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -56,10 +56,8 @@ jobs: ] - name: Print settings.xml run: cat /home/runner/.m2/settings.xml - - name: Prepare integration tests environment - run: sudo apt install libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 fonts-liberation && weasyprint --info && pango-view --version && python3 --version - name: Build with Maven - run: mvn --batch-mode clean package -P polarion2404,install-weasyprint,tests-with-weasyprint-cli + run: mvn --batch-mode -DwpExporterImpl=docker clean package -P polarion2404,tests-with-weasyprint-docker - name: Upload Artifacts if: always() uses: actions/upload-artifact@v4 diff --git a/pom.xml b/pom.xml index 65dfb8c..d204df9 100644 --- a/pom.xml +++ b/pom.xml @@ -207,5 +207,26 @@ + + + tests-with-weasyprint-docker + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + true + + docker + + + + + +