SmokeTests #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SmokeTests | |
on: | |
workflow_dispatch: | |
inputs: | |
ironpdf_version: | |
description: 'IronPdf version' | |
required: true | |
default: '1.0.0-SNAPSHOT' | |
jobs: | |
test_on_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Replace IronPdf LicenseKey | |
run: | | |
sed -i 's/TEST_LICENSE_KEY/${{ secrets.IRONPDF_LICENSE_KEY }}/g' IronPdf.SmokeTests/src/test/resources/config.properties | |
- name: Replace IronPdf version | |
run: | | |
sed -i 's/please-replace-version/${{ github.event.inputs.ironpdf_version }}/g' IronPdf.SmokeTests/pom.xml | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build | |
run: mvn --batch-mode -DskipTests package --file IronPdf.SmokeTests/pom.xml | |
- name: Test | |
run: mvn --batch-mode '-Dmaven.test.failure.ignore=true' test --file IronPdf.SmokeTests/pom.xml | |
- name: Report | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: Windows Tests | |
path: IronPdf.SmokeTests/target/surefire-reports/*.xml | |
reporter: java-junit | |
fail-on-error: true | |
test_on_windows_with_engine: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Replace IronPdf LicenseKey | |
run: | | |
sed -i 's/TEST_LICENSE_KEY/${{ secrets.IRONPDF_LICENSE_KEY }}/g' IronPdf.SmokeTests/src/test/resources/config.properties | |
- name: Replace IronPdf version | |
run: | | |
sed -i 's/please-replace-version/${{ github.event.inputs.ironpdf_version }}/g' IronPdf.SmokeTests/pom-with-engine.xml | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build | |
run: mvn --batch-mode -DskipTests package --file IronPdf.SmokeTests/pom-with-engine.xml | |
- name: Test | |
run: mvn --batch-mode '-Dmaven.test.failure.ignore=true' test --file IronPdf.SmokeTests/pom-with-engine.xml | |
- name: Report | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: Windows Tests | |
path: IronPdf.SmokeTests/target/surefire-reports/*.xml | |
reporter: java-junit | |
fail-on-error: true | |
test_on_ubuntu: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/[email protected] | |
- name: Replace IronPdf LicenseKey | |
run: | | |
sed -i 's/TEST_LICENSE_KEY/${{ secrets.IRONPDF_LICENSE_KEY }}/g' IronPdf.SmokeTests/src/test/resources/config.properties | |
- name: Replace IronPdf version | |
run: | | |
sed -i 's/please-replace-version/${{ github.event.inputs.ironpdf_version }}/g' IronPdf.SmokeTests/pom.xml | |
- name: Install Linux packages | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y fontconfig libturbojpeg libx11-6 libxext6 libxrender1 libglib2.0-dev libnss3 atk1.0 libatk-bridge2.0-dev libx11-xcb-dev libxcb-dri3-dev libxcomposite-dev libxdamage1 libdrm-dev libxrandr2 libgbm-dev libasound2-dev libpango1.0-dev | |
sudo apt-get install -y software-properties-common fonts-noto fonts-ancient-scripts gsfonts | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get install -y gcc-9 g++-9 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9 | |
sudo apt-get install -y xvfb libva-dev libgdiplus | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build | |
run: mvn --batch-mode -DskipTests package --file IronPdf.SmokeTests/pom.xml | |
- name: Test | |
run: mvn --batch-mode '-Dmaven.test.failure.ignore=true' test --file IronPdf.SmokeTests/pom.xml | |
- name: Report | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: Ubuntu-20.04 Tests | |
path: IronPdf.SmokeTests/target/surefire-reports/*.xml | |
reporter: java-junit | |
fail-on-error: true |