diff --git a/.github/workflows/build.yml b/.github/workflows/check.yml similarity index 74% rename from .github/workflows/build.yml rename to .github/workflows/check.yml index 514f6e2..069e7dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/check.yml @@ -5,7 +5,8 @@ on: branches: [main, develop] jobs: - build: + check: + name: Check runs-on: ubuntu-latest steps: - name: Checkout @@ -22,5 +23,11 @@ jobs: - name: Install dependencies run: pnpm install + - name: Astro check + run: pnpm astro check + + - name: Prettier check + run: pnpm exec prettier --check src + - name: Build run: pnpm build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a0b18f..57d7f4c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,6 +34,8 @@ jobs: - name: Build with Astro run: pnpm run build + env: + PUBLIC_GA_ID: ${{ secrets.PUBLIC_GA_ID }} - name: Upload artifact if: github.event_name != 'pull_request' diff --git a/AGENTS.md b/AGENTS.md index e6f3387..03d5db3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -162,23 +162,51 @@ Agents (like Copilot) must adhere to these coding standards to ensure consistenc All new UI components and pages must be built with accessibility in mind from the start. Agents must prioritize the following core principles: ### 1. Semantic HTML & Structure + - **Use HTML5 elements:** Prioritize `
`, `