Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿ› ๏ธ [refactor] GitHub Action Gradle Build Report #125

Merged
merged 3 commits into from
Mar 31, 2024
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
Loading