Skip to content

Commit

Permalink
Upload test artifacts on build failure (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
shashachu authored Aug 4, 2021
1 parent 6d38d0b commit e2a3620
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/gradle-pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,19 @@ jobs:
run: chmod +x gradlew
- name: Build with release Kotlin version
run: ./gradlew clean build ktlint
- name: Upload artifacts
- name: Upload dependency verification report
uses: actions/upload-artifact@v2
if: failure()
with:
name: Build artifacts
path: '**/build/**/dependency-verification-report.html'
if-no-files-found: warn
- name: Upload test results
uses: actions/upload-artifact@v2
if: failure()
with:
name: Test artifacts
path: '**/tests/**/*.html'
if-no-files-found: warn
- name: Build with dev Kotlin version
run: ./gradlew -PkotlinDev clean build ktlint

0 comments on commit e2a3620

Please sign in to comment.