Skip to content

ci: maintain workflows and keep Supabase active - #78

Merged
ZL-Asica merged 2 commits into
mainfrom
chore/ci-maintenance
May 31, 2026
Merged

ZL-Asica merged 2 commits into
mainfrom
chore/ci-maintenance

Conversation

@ZL-Asica

@ZL-Asica ZL-Asica commented May 31, 2026 •

Copy link
Copy Markdown
Member

✨ Features Updates

📌 Description

This PR trims repeated GitHub Actions setup code and adds a scheduled Supabase keep-alive workflow.

🔍 Feature Changes

  • Other: add a twice-weekly Keep Supabase Alive workflow with manual dispatch support.

🔄 Refactor Changes

  • Improve maintainability
  • Remove unnecessary code
  • Other: reuse one local Node/pnpm setup action across CI workflows.

🛠 Bug Fixes

  • Other: reduce the risk of Supabase inactivity pauses.

✅ Checklist

  1. Feature Updates:
  • Code follows project coding style.
  • Tested in the TanStack Start + Vite environment.
  1. Code Refactor:
  • No breaking changes introduced.

💬 Additional Notes

  • The keep-alive job uses VITE_SUPABASE_URL and SUPABASE_SECRET_KEY to ping profile?select=id&limit=1.
  • No dependency changes.

✅ Validation

  • pnpm run lint:ci
  • Ruby YAML parse check for changed workflow/action files
  • Push hook: eslint . --fix
  • Push hook: pnpm run test:unit && pnpm run test:e2e
  • Push hook: vite build

Copilot AI review requested due to automatic review settings May 31, 2026 18:32
@github-actions

Copy link
Copy Markdown

🌐 Pair Research PR Preview

  • 🚀 Preview deploy: ✅ success
  • 🔗 Preview URL: (not available)

🔗 Run: https://github.com/NUDelta/pair-research/actions/runs/26720953558

@github-actions

Copy link
Copy Markdown

🧪 Pair Research PR Checks

  • 🚨 Lint: ✅ success

  • 🧪 Unit tests: ✅ success

  • 🎭 E2E tests: ✅ success

  • 🏗️ Build: ✅ success

  • ▶️ E2E executed: 6 / 9

  • ✅ E2E passed: 6

  • ❌ E2E failed: 0

  • ⏭️ E2E skipped: 3

🔗 Run: https://github.com/NUDelta/pair-research/actions/runs/26720953574

@ZL-Asica ZL-Asica self-assigned this May 31, 2026
@ZL-Asica ZL-Asica added the ci label May 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors GitHub Actions workflows to reuse a local composite action for Node/pnpm setup and introduces a scheduled workflow to ping Supabase to reduce inactivity pauses.

Changes:

  • Replace repeated Node + pnpm setup/install steps across CI workflows with a shared local composite action.
  • Add a scheduled + manually-dispatchable “Keep Supabase Alive” workflow that pings the Supabase REST API.
  • Apply the shared setup action to PR preview, PR checks, and production deploy workflows.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/pr-preview.yml Swaps duplicated Node/pnpm setup steps for the shared composite action.
.github/workflows/pr-checks.yml Uses the shared composite action across lint/unit/e2e/build jobs.
.github/workflows/keep-supabase-alive.yml Adds scheduled/manual Supabase REST ping job to keep the project active.
.github/workflows/deploy-production.yml Reuses the shared composite action for production deploy pipeline setup.
.github/actions/setup-node-pnpm/action.yml Introduces a composite action encapsulating pnpm + Node setup and dependency install.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/keep-supabase-alive.yml
Comment thread .github/actions/setup-node-pnpm/action.yml
@ZL-Asica
ZL-Asica merged commit fa09c62 into main May 31, 2026
8 checks passed
@ZL-Asica
ZL-Asica deleted the chore/ci-maintenance branch May 31, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants