Skip to content

Commit

Permalink
๐Ÿ› ๏ธ [refactor] GitHub Action Gradle Build Report (#125)
Browse files Browse the repository at this point in the history
* refactor : PR Build Test ์‹คํŒจ์‹œ Report๋ฅผ ์••์ถ•ํ•˜์—ฌ Artifact์— ์—…๋กœ๋“œ

* feat : ๋ฆฌํฌํŠธ ์ €์žฅ ํ™•์ธ์„ ์œ„ํ•ด, ํ•ญ์ƒ ์‹คํŒจํ•˜๋Š” FailTest ์ž‘์„ฑ

* refactor : ์‹คํŒจ์‹œ ๋ฆฌํฌํŠธ ์ €์žฅ์„ ํ™•์ธํ–ˆ์œผ๋ฏ€๋กœ, ์‹คํŒจ ํ…Œ์ŠคํŠธ ์‚ญ์ œ
  • Loading branch information
binary-ho authored Mar 31, 2024
1 parent cef49b6 commit dcc0903
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pull-request-gradle-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,23 @@ jobs:
JASYPT_ENCRYPTION_PASSWORD: ${{ secrets.PROPERTY_ENCRYPTION_PASSWORD }}
run: |
./gradlew build --no-build-cache
- name: All Error Report Files ์••์ถ•
if: ${{ failure() }}
run: |
echo "All Error Report Files ์••์ถ•"
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
mkdir error_report_files
REPORT_DIRS=$(find . -type d -path '*/build/reports/tests/test')
for dir in $REPORT_DIRS; do
module_path=$(echo $dir | awk -F'/build/' '{print $1}' | cut -c 3-)
cp -r $dir error_report_files/$module_path/$(basename $(dirname $dir))
done
tar czvf error_report_files_$TIMESTAMP.tar.gz error_report_files
- name: Error Report Files๋ฅผ Artifacts์— ์—…๋กœ๋“œ
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: error_report_files
path: error_report_files_*.tar.gz

0 comments on commit dcc0903

Please sign in to comment.