Skip to content

fixing build

fixing build #301

Workflow file for this run

# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest] # Specify OS for the matrix
java-version: [17] # Specify the Java version
# runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 9
uses: actions/setup-java@v2
with:
java-version: '9'
distribution: 'zulu'
cache: gradle
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build
timeout-minutes: 2
- name: Integration tests
run: ./intTests-Xvfb.sh
timeout-minutes: 5
- name: Log files
run: |
echo "Listing files in the build folder:"
if [[ "$RUNNER_OS" == "Linux" || "$RUNNER_OS" == "macOS" ]]; then
# Unix-based (Linux/macOS)
find . -type f -exec echo {} \;
elif [[ "$RUNNER_OS" == "Windows" ]]; then
# Windows
dir /b .
fi
- name: Upload Failed test screenshots
uses: actions/[email protected]
if: ${{ failure() }}
with:
name: Failed tests
path: ./failed-gui-tests/
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: JUnit Tests - ${{ runner.os }}
path: build/test-results/*/*.xml
reporter: java-junit
fail-on-error: true
- name: Upload reports in case of failure
uses: actions/[email protected]
if: ${{ failure() }}
with:
name: Failed Reports - ${{ runner.os }}
path: ./build/reports/tests/