Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build Linux
on:
push:
branches: [ "main" ]
branches: [ "feature/automated-ui-test" ]
pull_request:
branches: [ "main" ]
branches: [ "feature/automated-ui-test" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand All @@ -19,8 +19,25 @@ jobs:
java-version: '21'
distribution: 'adopt'
cache: maven
- name: Install required packages
run: sudo apt-get update && sudo apt-get install -y xvfb libgtk-3-0
- name: Start Xvfb
run: |
Xvfb :99 -screen 0 1024x768x24 &
echo "Xvfb started"
- name: Set DISPLAY environment variable
run: echo "DISPLAY=:99" >> $GITHUB_ENV
- name: Build with Maven
run: mvn -B clean install -Plinux -Pci-build -Dno-native-profile
run: mvn -B clean install -Plinux -Pci-build -Dno-native-profile -Dmaven.test.skip=true
- name: Run headless test
run: mvn test -Plinux -Pci-build -Dno-native-profile
- name: Upload reference files and test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test resources
path: |
pdf-over-gui/src/test/resources/
- name: Describe current commit
run: echo "commit_sha=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Remove Previous Build Artifacts
Expand All @@ -38,9 +55,9 @@ jobs:
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: pdf-over-${{ github.event.pull_request.number || github.ref_name }}-${{ env.commit_sha }}-linux-x86_64
name: pdf-over-feature-automated-ui-test-${{ env.commit_sha }}-linux-x86_64
path: pdf-over.tar

permissions:
contents: read
actions: write
contents: read
actions: write
15 changes: 9 additions & 6 deletions .github/workflows/build-mac-aarch64.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Build MacOS (aarch64)
on:
push:
branches: [ "main" ]
branches: [ "feature/automated-ui-test#" ]
pull_request:
branches: [ "main" ]
branches: [ "feature/automated-ui-test#" ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand All @@ -20,7 +21,9 @@ jobs:
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B clean install -Pmac-aarch64 -Pci-build -Dno-native-profile
run: mvn -B clean install -Pmac-aarch64 -Pci-build -Dno-native-profile -Dmaven.test.skip=true
- name: Run tests
run: mvn test -DargLine="-XstartOnFirstThread" -Dmaven.test.skip=true
- name: Describe current commit
run: echo "commit_sha=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Remove Previous Build Artifacts
Expand All @@ -38,9 +41,9 @@ jobs:
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: pdf-over-${{ github.event.pull_request.number || github.ref_name }}-${{ env.commit_sha }}-macos-aarch64
name: pdf-over-feature-automated-ui-test-${{ env.commit_sha }}-macos-aarch64
path: pdf-over.tar

permissions:
contents: read
actions: write
contents: read
actions: write
14 changes: 8 additions & 6 deletions .github/workflows/build-mac-x86_64.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build MacOS (x86_64)
on:
push:
branches: [ "main" ]
branches: [ "feature/automated-ui-test#" ]
pull_request:
branches: [ "main" ]
branches: [ "feature/automated-ui-test#" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand All @@ -20,7 +20,9 @@ jobs:
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B clean install -Pmac -Pci-build -Dno-native-profile
run: mvn -B clean install -Pmac -Pci-build -Dno-native-profile -Dmaven.test.skip=true
- name: Run Tests
run: mvn test -DargLine="-XstartOnFirstThread" -Dmaven.test.skip=true
- name: Describe current commit
run: echo "commit_sha=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Remove Previous Build Artifacts
Expand All @@ -38,9 +40,9 @@ jobs:
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: pdf-over-${{ github.event.pull_request.number || github.ref_name }}-${{ env.commit_sha }}-macos-x86_64
name: pdf-over-feature-automated-ui-test-${{ env.commit_sha }}-macos-x86_64
path: pdf-over.tar

permissions:
contents: read
actions: write
contents: read
actions: write
22 changes: 16 additions & 6 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

name: Build Windows
on:
push:
branches: [ "main" ]
branches: [ "feature/automated-ui-test" ]
pull_request:
branches: [ "main" ]
branches: [ "feature/automated-ui-test" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand All @@ -20,7 +21,16 @@ jobs:
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B clean install -Pwindows -Pci-build -Dno-native-profile
run: mvn -B clean install -Pwindows -Pci-build -Dno-native-profile -DskipTests
- name: Run tests
run: mvn -B test -Pwindows -Pci-build -Dno-native-profile
- name: Upload reference files and test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test resources
path: |
pdf-over-gui/src/test/resources/
- name: Describe current commit
run: echo "commit_sha=$("${{ github.sha }}".SubString(0,7))" >> $env:GITHUB_ENV
- name: Remove Previous Build Artifacts
Expand All @@ -34,9 +44,9 @@ jobs:
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: pdf-over-${{ github.event.pull_request.number || github.ref_name }}-${{ env.commit_sha }}-windows-x86_64
name: pdf-over-feature-automated-ui-test-${{ env.commit_sha }}-windows-x86_64
path: pdf-over-build

permissions:
contents: read
actions: write
contents: read
actions: write
35 changes: 33 additions & 2 deletions pdf-over-gui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
<artifactId>logback-classic</artifactId>
<version>1.5.18</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.10.0</version>
</dependency>
<dependency>
<groupId>at.a-sit</groupId>
<artifactId>pdf-over-signer</artifactId>
Expand Down Expand Up @@ -75,17 +80,39 @@
<artifactId>webauthn-client-java</artifactId>
<version>0.0.1</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.36</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.swtbot.swt</groupId>
<artifactId>finder</artifactId>
<version>4.3.0.202509040840</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
Expand All @@ -105,7 +132,6 @@
<build>
<pluginManagement>
<plugins>
<!-- Ignore/Execute plugin execution -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
Expand Down Expand Up @@ -134,6 +160,11 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.4</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.2.0</version>
Expand Down Expand Up @@ -847,4 +878,4 @@
<url>file://${pdfover-build.root-dir}/repo</url>
</repository>
</repositories>
</project>
</project>
Binary file modified pdf-over-gui/src/main/resources/cfg/PDFASConfig.zip
Binary file not shown.
Loading
Loading