Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
E2E-Tests:
name: E2E-Tests
runs-on: ubuntu-latest
# env:
# PUBLIC_GA_MEASUREMENT_ID: ${{ vars.PUBLIC_GA_MEASUREMENT_ID }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand All @@ -83,7 +85,7 @@ jobs:
PORT: 4321
HOST: 0.0.0.0
BASE_URL: http://127.0.0.1:4321
PUBLIC_GA_MEASUREMENT_ID: ${{ vars.PUBLIC_GA_MEASUREMENT_ID }}
# PUBLIC_GA_MEASUREMENT_ID: ${{ vars.PUBLIC_GA_MEASUREMENT_ID }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Visual-Regression-Tests will always fail due to validation check

High Severity

The PUBLIC_GA_MEASUREMENT_ID environment variable is commented out at line 88, but lines 97-103 still contain a validation step that checks if this variable is set and exits with error code 1 if empty. Since the variable is no longer set, the validation will always fail, causing the Visual-Regression-Tests job to fail every time it runs.

Fix in Cursor Fix in Web

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down
1 change: 0 additions & 1 deletion src/components/GoogleAnalytics.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const gaMeasurementId = import.meta.env.PUBLIC_GA_MEASUREMENT_ID;
<>
{/* Google Analytics 4 - Optimized non-blocking implementation */}
{/* Script loads asynchronously with low priority to not compete with critical resources */}
{/* @ts-expect-error - fetchpriority is valid HTML but not yet in TypeScript definitions */}
<script
async
src={`https://www.googletagmanager.com/gtag/js?id=${gaMeasurementId}`}
Expand Down
Loading