Skip to content

Commit

Permalink
[fix] dev-be ,dev-fe merge (#92)
Browse files Browse the repository at this point in the history
fix: dev-be,dev-fe merge
  • Loading branch information
fru1tworld authored Nov 12, 2024
2 parents e940d51 + 422fe13 commit 5d71aac
Show file tree
Hide file tree
Showing 52 changed files with 6,048 additions and 10,741 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/FRONTEND_DEPLOY.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ jobs:
sleep 5
if ! curl -f http://localhost:80/health; then
echo "Warning: Health check failed after deployment"
fi
fi
91 changes: 91 additions & 0 deletions .github/workflows/FRONTEND_PR_CHECK.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Frontend PR Check

on:
pull_request:
branches: [ main ]
paths:
- 'packages/frontend/**'
- 'packages/shared/**'

jobs:
build-check:
if: contains(github.head_ref, 'dev-fe')
runs-on: ubuntu-latest

# Checks API 권한
permissions:
checks: write

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 9.4.0

- uses: actions/setup-node@v3
with:
node-version: '22.9.0'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build frontend
id: build
working-directory: packages/frontend
run: pnpm build
continue-on-error: true

- name: Process Build Result
uses: actions/github-script@v6
with:
script: |
const buildOutcome = '${{ steps.build.outcome }}';
await github.rest.checks.create({
owner: context.repo.owner,
repo: context.repo.name,
name: 'Frontend Build',
head_sha: context.sha,
status: 'completed',
conclusion: buildOutcome === 'success' ? 'success' : 'failure',
output: {
title: buildOutcome === 'success'
? '🎉 Frontend Build Successful'
: '❌ Frontend Build Failed',
summary: buildOutcome === 'success'
? [
'## ✅ Build Status: Success',
'',
'### Build Information:',
'- **Build Time**: ' + new Date().toISOString(),
'- **Branch**: ' + context.ref,
'',
'✨ Ready to be reviewed!'
].join('\n')
: [
'## ❌ Build Status: Failed',
'',
'### Error Information:',
'- **Build Time**: ' + new Date().toISOString(),
'- **Branch**: ' + context.ref,
'',
'### Next Steps:',
'1. Check the build logs for detailed error messages',
'2. Fix the identified issues',
'3. Push your changes to trigger a new build',
'',
'> Need help? Contact the frontend team.'
].join('\n'),
text: buildOutcome === 'success'
? '자세한 빌드 로그는 Actions 탭에서 확인하실 수 있습니다.'
: '빌드 실패 원인을 확인하시려면 위의 "Details"를 클릭하세요.'
}
});
if (buildOutcome === 'failure') {
core.setFailed('Frontend build failed');
}
25 changes: 0 additions & 25 deletions be/.eslintrc.js

This file was deleted.

56 changes: 0 additions & 56 deletions be/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions be/.prettierrc

This file was deleted.

99 changes: 0 additions & 99 deletions be/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions be/nest-cli.json

This file was deleted.

Loading

0 comments on commit 5d71aac

Please sign in to comment.