Skip to content

Feat: 경로 수정 #52

Feat: 경로 수정

Feat: 경로 수정 #52

Workflow file for this run

name: Test Before PR
on:
pull_request:
branches: [ master, develop, "feature/**" ] # master branch에 PR을 보낼 때 실행
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
# Gradle wrapper 파일 실행 권한주기
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Gradle test를 실행한다
- name: Test with Gradle
run: ./gradlew --info test
- name: Compress all report files
if: ${{ failure() }}
run: |
echo "Compressing all report files..."
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
mkdir 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 report_files/$module_path/$(basename $(dirname $dir))
done
tar czvf report_files_$TIMESTAMP.tar.gz report_files
- name: Upload Error Report Files To Artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: report_files
path: report_files_*.tar.gz