-
Notifications
You must be signed in to change notification settings - Fork 46
38 lines (33 loc) · 1.08 KB
/
gradle-build.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
name: Gradle Build Check
on:
pull_request:
push:
workflow_dispatch: {}
jobs:
gradle:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew check --scan -stacktrace
- name: 'Upload Test Results'
uses: actions/upload-artifact@v4
with:
name: 'Test Results'
path: build/reports/tests
- name: 'Generate Test Results Preview'
uses: pavi2410/html-preview-action@v2
id: preview_test_reports
with:
html_file: 'build/reports/tests/test/index.html'
- name: 'Show Test Result Preview'
run:
echo ${{ format('[Click here to preview HTML page in browser]({0})', steps.preview_test_reports.outputs.url) }}
with:
message: ${{ format('[Click here to preview HTML page in browser]({0})', steps.preview_test_reports.outputs.url) }}