File tree Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Original file line number Diff line number Diff line change 11name : 🚨 CI Checks
22
33on :
4- push :
5- branches :
6- - main
74 pull_request :
85 branches :
96 - main
107 - staging
118
129jobs :
13- check-main-override :
14- if : github.event_name == 'push'
15- runs-on : ubuntu-latest
16- steps :
17- - name : 🛑 Block direct pushes to main (unless override flag)
18- run : |
19- echo "🔍 Event: ${{ github.event_name }} | Ref: ${{ github.ref }}"
20- if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
21- COMMIT_MSG="${{ github.event.head_commit.message }}"
22- echo "🔍 Commit message: $COMMIT_MSG"
23- if [[ "$COMMIT_MSG" != *"[override-main]"* ]]; then
24- echo "❌ Direct push to main is blocked. Use a PR or include [override-main] in your commit message."
25- exit 1
26- else
27- echo "✅ Override flag found. Proceeding."
28- fi
29- else
30- echo "ℹ️ Not a push to main — skipping override check."
31- fi
32-
3310 lint :
3411 name : 🔍 Lint
35- if : github.event_name == 'pull_request'
3612 runs-on : ubuntu-latest
3713 steps :
3814 - uses : actions/checkout@v4
4521
4622 typecheck :
4723 name : ✅ Type Check
48- if : github.event_name == 'pull_request'
4924 runs-on : ubuntu-latest
5025 steps :
5126 - uses : actions/checkout@v4
5833
5934 build :
6035 name : 🔨 Build
61- if : github.event_name == 'pull_request'
6236 runs-on : ubuntu-latest
6337 steps :
6438 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ Core styling configuration files:
207207- ` yarn lint:fix ` - Fix ESLint errors
208208- ` yarn format ` - Format code with Prettier
209209- ` yarn check-format ` - Check code formatting
210+ - ` yarn typecheck ` - Check Typescript types
210211
211212## CI & Deployments
212213
@@ -219,10 +220,6 @@ This template includes a built-in GitHub Actions workflow (`ci.yml`) that runs a
219220- 🔍 Linting with ESLint
220221- ✅ Type-checking with TypeScript
221222- 🔨 Build verification (` next build ` )
222- - 🛑 Main branch is protected — requires ` [override-main] ` in commit message to push directly
223-
224- > All CI checks must pass before merging into ` main ` or ` staging ` .
225- > Preview deployments are automatically handled by Vercel for all branches and PRs.
226223
227224---
228225
You can’t perform that action at this time.
0 commit comments