Skip to content

ci: server unavailable tests #170

ci: server unavailable tests

ci: server unavailable tests #170

Workflow file for this run

name: Java CI
on: [push]
permissions:
contents: read
checks: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Install Xvfb
run: |
sudo apt-get update
sudo apt-get install -y xvfb
continue-on-error: true
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
# build everything (includes running unit tests)
- name: Execute Gradle build
run: xvfb-run -a ./gradlew build
# report the results
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
detailed_summary: true # display detailed summary of the report
include_passed: true # include passed tests in the results table