Combined dependency updates (2024-10-02) #182
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-all | |
on: | |
# Comentar las siguientes lineas para desactivar la ejecucion de este worflow tras un push/PR | |
push: | |
branches-ignore: | |
- 'dependabot/**' #avoid duplicates: only run the PR, not the commit | |
tags-ignore: | |
- 'v*' #avoids rerun existing commit on release | |
pull_request: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout GitHub repo | |
uses: actions/checkout@v4 | |
- name: Select Java Version | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '8' | |
cache: 'maven' | |
# - name: Build and test UT | |
# run: mvn test -Dmaven.test.failure.ignore=true -U --no-transfer-progress | |
# Aunque solo los test it que ejecutan swing requieren un display Xvfb, ejecuto todo bajo esta accion | |
- name: Build and run all tests | |
run: mvn verify -Dmaven.test.failure.ignore=true -U --no-transfer-progress | |
- name: Publish surefire test report | |
if: always() | |
uses: mikepenz/action-junit-report@v4.3.1 | |
with: | |
check_name: test-report | |
report_paths: 'target/*-reports/TEST-*.xml' | |
fail_on_failure: 'true' | |
- if: always() | |
name: Publish html test reports to an artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-reports-files | |
path: | | |
target/site/ |