TerasologyLauncher/.github/workflows/push-validation.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

name: Push Validation
2019-11-22 14:14:22 -08:00
on:
pull_request:
push:
branches: [master]
2019-11-22 14:14:22 -08:00
jobs:
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
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
if: failure()
with:
name: test-report
path: build/reports/tests/test/
- name: Upload Test Report
2022-08-21 15:45:44 -07:00
uses: check-run-reporter/action@v2.11.1
# 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
- name: Upload Checkstyle Report
2022-08-21 15:45:44 -07:00
uses: check-run-reporter/action@v2.11.1
# 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'