From 089ca23c7f7a8206d07096e5268bf4a6d19027a5 Mon Sep 17 00:00:00 2001 From: Harold Torres Date: Wed, 1 Apr 2026 13:17:00 +1100 Subject: [PATCH] chore: remove automated coverage badge generation and documentation --- .github/workflows/ci.yml | 46 ---------------------------------------- README.md | 21 +++++++++--------- 2 files changed, 10 insertions(+), 57 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e66263a..53e9e25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,8 +45,6 @@ jobs: name: Test & Coverage runs-on: ubuntu-latest timeout-minutes: 15 - permissions: - contents: write steps: - name: Checkout @@ -76,47 +74,3 @@ jobs: name: coverage-report path: coverage/ retention-days: 7 - - # Only update the badge on pushes to main (not on PRs) - - name: Generate coverage badge - if: github.ref == 'refs/heads/main' && github.event_name == 'push' - run: | - node -e " - const fs = require('fs'); - const summary = JSON.parse(fs.readFileSync('coverage/coverage-summary.json', 'utf8')); - const pct = summary.total.lines.pct; - const color = pct >= 90 ? '#4c1' : pct >= 75 ? '#dfb317' : '#e05d44'; - const label = 'coverage'; - const value = pct + '%'; - const svg = [ - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '' + label + '', - '' + label + '', - '' + value + '', - '' + value + '', - '', - '' - ].join(''); - fs.writeFileSync('coverage-badge.svg', svg); - console.log('Generated badge: ' + pct + '%'); - " - - - name: Commit coverage badge - if: github.ref == 'refs/heads/main' && github.event_name == 'push' - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "chore: update coverage badge [skip ci]" - file_pattern: coverage-badge.svg - commit_user_name: github-actions[bot] - commit_user_email: github-actions[bot]@users.noreply.github.com diff --git a/README.md b/README.md index 6604b5c..ced34af 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ PlotlineAI is a group movie recommendation app. Each participant shares their ta [![Live Demo](https://img.shields.io/badge/demo-plotline--ai-blue)](https://plotline-ai.vercel.app/) [![CI](https://github.com/CodeHunt101/plotline-ai/actions/workflows/ci.yml/badge.svg)](https://github.com/CodeHunt101/plotline-ai/actions/workflows/ci.yml) -![Coverage](./coverage-badge.svg) ## Table of Contents @@ -350,19 +349,19 @@ Open **Settings → Secrets and variables → Actions** in your GitHub repo and **Repository secrets** (sensitive credentials): -| Secret | Used by | Where to find it | -| ---------------------- | ------------------------ | --------------------------------------------------- | -| `SUPABASE_DB_URL` | `supabase-keepalive.yml` | Supabase dashboard → Connect → Transaction mode | -| `CLOUDFLARE_API_TOKEN` | `deploy.yml` | Cloudflare dashboard → My Profile → API Tokens | -| `SUPABASE_API_KEY` | `deploy.yml` | Supabase dashboard → Project Settings → Data API | -| `WORKER_SHARED_SECRET` | `deploy.yml` | Must match `SUPABASE_WORKER_SECRET` in `.env.local` | +| Secret | Used by | Where to find it | +| ---------------------- | ------------------------ | ----------------------------------------------- | +| `SUPABASE_DB_URL` | `supabase-keepalive.yml` | Supabase dashboard → Connect → Transaction mode | +| `CLOUDFLARE_API_TOKEN` | `deploy.yml` | Cloudflare dashboard → My Profile → API Tokens | **Repository variables** (non-sensitive config): -| Variable | Used by | Where to find it | -| ----------------------- | ------------ | ------------------------------------------------ | -| `CLOUDFLARE_ACCOUNT_ID` | `deploy.yml` | Cloudflare dashboard → right-hand sidebar | -| `SUPABASE_URL` | `deploy.yml` | Supabase dashboard → Project Settings → Data API | +| Variable | Used by | Where to find it | +| ----------------------- | ------------ | ----------------------------------------- | +| `CLOUDFLARE_ACCOUNT_ID` | `deploy.yml` | Cloudflare dashboard → right-hand sidebar | + +> [!NOTE] +> The Cloudflare Worker runtime secrets (`SUPABASE_URL`, `SUPABASE_API_KEY`, `WORKER_SHARED_SECRET`) are set directly in the **Cloudflare dashboard → Workers → supabase-worker → Settings → Variables and Secrets**. They are not managed through GitHub Actions. ## Project Structure