2020-03-10 12:00:47 -07:00
|
|
|
name: Push Validation
|
2019-11-22 14:14:22 -08:00
|
|
|
|
2020-10-22 05:42:30 -07:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
2019-11-22 14:14:22 -08:00
|
|
|
|
|
|
|
jobs:
|
2020-03-10 12:00:47 -07:00
|
|
|
validate:
|
2019-11-22 14:14:22 -08:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-08-21 15:45:44 -07:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-09 12:57:42 -07:00
|
|
|
- name: Set up JDK 15
|
2022-08-21 15:45:44 -07:00
|
|
|
uses: actions/setup-java@v3
|
2019-11-22 14:14:22 -08:00
|
|
|
with:
|
2022-08-21 15:45:44 -07:00
|
|
|
distribution: 'liberica'
|
|
|
|
java-version: '15'
|
|
|
|
cache: 'gradle'
|
2020-10-09 12:57:42 -07:00
|
|
|
- name: Build
|
|
|
|
run: ./gradlew jar
|
|
|
|
- name: Test
|
2020-10-06 11:01:01 -07:00
|
|
|
env:
|
|
|
|
JAVA_TOOL_OPTIONS: -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.verbose=true
|
2020-10-09 12:57:42 -07:00
|
|
|
run: ./gradlew test
|
2022-08-21 15:45:44 -07:00
|
|
|
- uses: actions/upload-artifact@v3
|
2020-10-10 07:18:16 -07:00
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: test-report
|
|
|
|
path: build/reports/tests/test/
|
2020-10-22 05:42:30 -07:00
|
|
|
- name: Upload Test Report
|
2022-08-21 15:45:44 -07:00
|
|
|
uses: check-run-reporter/action@v2.11.1
|
2020-10-22 05:42:30 -07:00
|
|
|
# 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'
|
2020-10-09 12:57:42 -07:00
|
|
|
- name: Static Code Analysis
|
|
|
|
run: ./gradlew check -x test
|
2020-10-22 05:42:30 -07:00
|
|
|
- name: Upload Checkstyle Report
|
2022-08-21 15:45:44 -07:00
|
|
|
uses: check-run-reporter/action@v2.11.1
|
2020-10-22 05:42:30 -07:00
|
|
|
# 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'
|