:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(ci): cache go modules and build output for livestream (#92958)
posthog[bot]1f54db7f2f8b
diff --git a/.github/workflows/build-livestream-tui.yml b/.github/workflows/build-livestream-tui.ymlindex b9ed47877e13..87f3c6e0189c 100644--- a/.github/workflows/build-livestream-tui.yml+++ b/.github/workflows/build-livestream-tui.yml@@ -33,6 +33,7 @@ jobs:uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0with:go-version: '1.25.5'+ cache-dependency-path: livestream/go.sum- name: Build production binariesrun: cd livestream && make -f Makefile.tui build-alldiff --git a/.github/workflows/ci-livestream-tui.yml b/.github/workflows/ci-livestream-tui.ymlindex 6c78dba2f483..cfe5325f9523 100644--- a/.github/workflows/ci-livestream-tui.yml+++ b/.github/workflows/ci-livestream-tui.yml@@ -1,6 +1,12 @@name: Livestream TUIon:+ push:+ branches:+ - master+ paths:+ - '.github/workflows/ci-livestream-tui.yml'+ - 'livestream/**'pull_request:paths:- '.github/workflows/ci-livestream-tui.yml'@@ -15,6 +21,7 @@ permissions:jobs:lint-and-test:+ if: github.event_name == 'pull_request'runs-on: ubuntu-24.04timeout-minutes: 10@@ -26,6 +33,7 @@ jobs:uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0with:go-version: '1.25.5'+ cache-dependency-path: livestream/go.sum- name: Run golangci-lintuses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0@@ -56,6 +64,7 @@ jobs:uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0with:go-version: '1.25.5'+ cache-dependency-path: livestream/go.sum- name: Buildrun: cd livestream && make -f Makefile.tui builddiff --git a/.github/workflows/ci-livestream.yml b/.github/workflows/ci-livestream.ymlindex e9ff88ec1c8d..502c7349bb32 100644--- a/.github/workflows/ci-livestream.yml+++ b/.github/workflows/ci-livestream.yml@@ -29,6 +29,7 @@ jobs:uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0with:go-version: '1.25.5'+ cache-dependency-path: livestream/go.sum- name: Run golangci-lintuses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0diff --git a/livestream/Makefile.tui b/livestream/Makefile.tuiindex 2b904a013133..9c65172432f3 100644--- a/livestream/Makefile.tui+++ b/livestream/Makefile.tui@@ -1,4 +1,4 @@-.PHONY: build build-linux build-darwin build-all clean test run deps lint fmt help+.PHONY: build build-linux build-darwin build-all clean test run deps tidy lint fmt help# Binary nameBINARY_NAME=posthog-live@@ -50,6 +50,9 @@ clean:# Install dependenciesdeps:$(GOMOD) download++# Add missing and remove unused module requirements+tidy:$(GOMOD) tidy# Run tests@@ -77,6 +80,7 @@ help:@echo " make -f Makefile.tui run Build and run locally"@echo " make -f Makefile.tui clean Remove build artifacts"@echo " make -f Makefile.tui deps Download Go dependencies"+ @echo " make -f Makefile.tui tidy Tidy Go module requirements"@echo " make -f Makefile.tui test Run Go tests"@echo " make -f Makefile.tui fmt Format Go code"@echo " make -f Makefile.tui lint Run golangci-lint"