-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 930 Bytes
/
run-tests.yaml
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
name: Run Tests
on: [push, pull_request, workflow_dispatch]
jobs:
build-test:
name: "Run Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
check-latest: true
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build and test
run: ./gradlew build --no-daemon --warning-mode all
- name: Merge test reports
run: ./gradlew merge-test-reports --no-daemon --warning-mode all
if: always()
# Per the advice from:
# - https://github.com/marketplace/actions/test-reporter
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: '**/build/test-results/test*/TESTS-TestSuites.xml'