Restore Capture Test Results for PR GHA

* Renaming GHA workflow files for better context
This commit is contained in:
Artem Bilan
2023-10-20 08:51:50 -04:00
parent 0d217aecfb
commit 57e3c333c1
2 changed files with 10 additions and 3 deletions

37
.github/workflows/pr-build.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Pull Request Build
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
cache: gradle
- name: Run Gradle
uses: burrunan/gradle-cache-action@v1
with:
debug: false
concurrent: true
gradle-build-scan-report: false
arguments: check
- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '*/build/reports/tests/**/*.*'
retention-days: 3