-
Notifications
You must be signed in to change notification settings - Fork 76
49 lines (45 loc) · 1.3 KB
/
push-validation.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
name: Push Validation
on:
pull_request:
push:
branches: [master]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'liberica'
java-version: '17'
cache: 'gradle'
- name: Build
run: ./gradlew jar
- name: Test
env:
JAVA_TOOL_OPTIONS: -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.verbose=true
run: ./gradlew test
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-report
path: build/reports/tests/test/
- name: Upload Test Report
uses: check-run-reporter/[email protected]
# always run, otherwise you'll only see results for passing builds
if: always()
with:
label: test
token: ${{ secrets.CHECK_RUN_REPORTER_TOKEN }}
report: 'build/test-results/**/*.xml'
- name: Static Code Analysis
run: ./gradlew check -x test
- name: Upload Checkstyle Report
uses: check-run-reporter/[email protected]
# always run, otherwise you'll only see results for passing builds
if: always()
with:
label: code-analysis
token: ${{ secrets.CHECK_RUN_REPORTER_TOKEN }}
report: 'build/reports/**/*.xml'