-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (43 loc) · 1.42 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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.2.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/