mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 14:38:53 +00:00
30 lines
727 B
YAML
30 lines
727 B
YAML
# Carry out tests on pull requests
|
|
name: PR Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ 'master' ]
|
|
|
|
permissions:
|
|
contents: read
|
|
checks: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up JDK 16
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '16'
|
|
distribution: 'temurin'
|
|
- name: Test Pull Request
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: test
|
|
- name: Publish Test Report
|
|
uses: mikepenz/action-junit-report@v3
|
|
if: success() || failure() # always run even if the previous step fails
|
|
with:
|
|
report_paths: '**/build/test-results/test/TEST-*.xml' |