-
Notifications
You must be signed in to change notification settings - Fork 53
51 lines (46 loc) · 1.39 KB
/
tests.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
48
49
50
51
name: tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: ['17']
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Tests on Java ${{ matrix.java }}
uses: burrunan/gradle-cache-action@v2
with:
job-id: jdk${{ matrix.java }}
arguments: test
properties: vaadinProKey=${{ secrets.VAADIN_PROKEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: Unit Test Results (Java ${{ matrix.java }})
path: acrarium/build/test-results/**/*.xml
publish-test-results:
name: "Publish Unit Tests Results"
needs: tests
runs-on: ubuntu-latest
# the build-and-test job might be skipped, we don't need to run this job then
if: success() || failure()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: artifacts/**/*.xml