Skip to content

Bugfixes on tests and github actions runner for Windows #10196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Added windows testing
  • Loading branch information
cmaglie committed Jun 19, 2020
commit 6cb16250df64de62a1ff3849e52ce0f98d78afc7
38 changes: 31 additions & 7 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ on:
pull_request:

jobs:
test:
test-linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
Expand All @@ -16,17 +15,42 @@ jobs:
java-version: 1.8
- name: Build with Ant
working-directory: ./build
run: |
ant clean build
run: ant clean build
- name: Install X virtual framebuffer
run: sudo apt-get install -y xvfb
- name: Run tests
working-directory: ./app
working-directory: ./build
run: xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" ant test -Drunning-from-github-action=1
- name: Publish results
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: html-results
name: html-results-linux
path: app/test-bin/results/html/
- name: Cleanup xvfb
uses: bcomnes/cleanup-xvfb@v1

test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Download JDK 1.8 for Windows/x86
run: curl -O "https://cdn.azul.com/zulu/bin/zulu8.46.0.19-ca-jdk8.0.252-win_i686.zip"
- name: Set up JDK 1.8
uses: actions/setup-java@master
with:
version: 1.8
architecture: x86
jdkFile: ./zulu8.46.0.19-ca-jdk8.0.252-win_i686.zip
- name: Build with Ant
working-directory: ./build
run: |
java -version
ant clean build
- name: Run tests
working-directory: ./build
run: ant test -Drunning-from-github-action=1
- name: Publish results
uses: actions/upload-artifact@v2
with:
name: html-results-win
path: app/test-bin/results/html/
1 change: 1 addition & 0 deletions app/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
<fail message="Need single-test-class if single-test-methods is set" if="single-test-methods" unless="single-test-class"/>

<junit printsummary="yes" dir="${work.dir}" fork="true" showoutput="no" failureproperty="test.failed">
<jvmarg value="-Dlog4j.dir=."/>
<jvmarg value="-Djava.library.path=${java.additional.library.path}"/>
<jvmarg value="-DWORK_DIR=."/>
<jvmarg value="-ea"/>
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy