Configure PostHog CI/CD with GitHub Actions: unit tests with mocked PostHog,
integration tests against a dev project, and deployment annotations.
Trigger: "posthog CI", "posthog GitHub Actions", "posthog automated tests",
"CI posthog", "posthog pipeline".
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
posthog-ci-integration
description
Configure PostHog CI/CD with GitHub Actions: unit tests with mocked PostHog,
integration tests against a dev project, and deployment annotations.
Trigger: "posthog CI", "posthog GitHub Actions", "posthog automated tests",
"CI posthog", "posthog pipeline".
allowed-tools
Read, Write, Edit, Bash(gh:*)
version
1.12.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
["saas","posthog","testing","ci-cd"]
compatibility
Designed for Claude Code, also compatible with Codex and OpenClaw
PostHog CI Integration
Overview
Set up CI/CD pipelines for PostHog integrations. Covers mocked unit tests (no API key needed), integration tests against a PostHog dev project, and deployment annotations that mark releases in your PostHog timeline.
Prerequisites
GitHub repository with Actions enabled
PostHog dev project API key for integration tests
PostHog personal API key for deployment annotations
npm/pnpm project with vitest or jest
Instructions
Step 1: Configure GitHub Secrets
set -euo pipefail
# Project key for integration tests (phc_... from dev project)
gh secret set POSTHOG_TEST_KEY --body "phc_dev_project_key"# Personal key for deployment annotations (phx_...)
gh secret set POSTHOG_PERSONAL_API_KEY --body "phx_your_personal_key"# Project ID for annotations
gh secret set POSTHOG_PROJECT_ID --body "12345"