-
Notifications
You must be signed in to change notification settings - Fork 1
115 lines (102 loc) · 4.08 KB
/
smoke-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
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