Skip to content

Commit

Permalink
build: run weasyprint integration tests during build process
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev committed Jun 10, 2024
1 parent e6aa41a commit d844dcb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Print settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Build with Maven
run: mvn --batch-mode clean package
run: mvn --batch-mode -DwpExporterImpl=docker clean package -P polarion2404,tests-with-weasyprint-docker
- name: Extract artefact version
id: artefact_version
run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
Expand Down
23 changes: 22 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<byte-buddy.version>1.14.17</byte-buddy.version>

<exec-maven-plugin.version>3.3.0</exec-maven-plugin.version>
<weasyprint.version>61.2</weasyprint.version>
<weasyprint.version>62.2</weasyprint.version>
<awaitility.version>4.2.1</awaitility.version>

<maven-jar-plugin.Extension-Context>pdf-exporter</maven-jar-plugin.Extension-Context>
Expand Down Expand Up @@ -193,5 +193,26 @@
</plugins>
</build>
</profile>

<profile>
<id>tests-with-weasyprint-docker</id>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<!-- hide unwanted exceptions logging -->
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
<wpExporterImpl>docker</wpExporterImpl>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit d844dcb

Please sign in to comment.