feat: #45 SEO 점수 개선 #68
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: [develop, main] | |
| push: | |
| branches: [develop, main] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node cache | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| id: lint | |
| run: pnpm run lint | |
| - name: Build | |
| id: build | |
| run: pnpm run build | |
| - name: CI Summary | |
| if: failure() | |
| run: | | |
| lint_result="${{ steps.lint.outcome }}" | |
| build_result="${{ steps.build.outcome }}" | |
| lint_message="Lint passed ✅" | |
| build_message="Build passed ✅" | |
| if [ "$lint_result" == "failure" ]; then | |
| lint_message="Lint failed ❌" | |
| elif [ "$lint_result" == "skipped" ]; then | |
| lint_message="Lint skipped ⏭️" | |
| fi | |
| if [ "$build_result" == "failure" ]; then | |
| build_message="Build failed ❌" | |
| elif [ "$build_result" == "skipped" ]; then | |
| build_message="Build skipped ⏭️ (previous step failed)" | |
| fi | |
| { | |
| echo "### CI Summary" | |
| echo "- $lint_message" | |
| echo "- $build_message" | |
| } >> $GITHUB_STEP_SUMMARY |