-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.48 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
52
53
54
55
56
57
58
name: Run tests
on:
push:
branches: [ main ]
pull_request:
paths-ignore:
- README.md
- .github/**
jobs:
build-and-test:
strategy:
matrix:
os: [macos, ubuntu, windows]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew :noko:desktopJar
- name: Test
run: ./gradlew :noko:desktopTest
- name: Upload HTML reports
uses: actions/[email protected]
if: always()
with:
name: desktopTest-${{ matrix.os }}-reports.zip
path: ./noko/build/reports/tests/desktopTest
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Unit Test Results On ${{ matrix.os }})
path: ./noko/build/test-results/**/*.xml
publish-test-results:
name: Publish Unit Tests Results
needs: build-and-test
runs-on: ubuntu-latest
if: always()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: artifacts/**/*.xml