diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000000000..298aa7585765f --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +.eslintrc.js +jest.config.ts diff --git a/.eslintrc.js b/.eslintrc.js index d8a5b12f00f24..e9434574a73f2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -54,6 +54,7 @@ module.exports = { 'compat', 'posthog', 'simple-import-sort', + 'import', ], rules: { 'no-console': ['error', { allow: ['warn', 'error'] }], @@ -261,6 +262,19 @@ module.exports = { 'no-constant-condition': 'off', 'no-prototype-builtins': 'off', 'no-irregular-whitespace': 'off', + 'import/no-restricted-paths': [ + 'error', + { + zones: [ + { + target: './frontend/**', + from: './ee/frontend/**', + message: + "EE licensed TypeScript should only be accessed via the posthogEE objects. Use `import posthogEE from '@posthog/ee/exports'`", + }, + ], + }, + ], }, overrides: [ { diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index f97a6f4bb85cc..ca6ad9d5dcfa0 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -171,7 +171,7 @@ jobs: if: needs.changes.outputs.shouldTriggerCypress == 'true' uses: depot/pull-action@v1 with: - build-id: ${{ needs.container.outputs.build-id }} # TODO: Use unit-build-id when the Unit image works + build-id: ${{ needs.container.outputs.unit-build-id }} tags: ${{ needs.container.outputs.tag }} - name: Write .env # This step intentionally has no if, so that GH always considers the action as having run @@ -196,6 +196,7 @@ jobs: OBJECT_STORAGE_ACCESS_KEY_ID=object_storage_root_user OBJECT_STORAGE_SECRET_ACCESS_KEY=object_storage_root_password GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + CELERY_METRICS_PORT=8999 EOT - name: Start PostHog diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index c586598152fd6..7d49cd5c23cf6 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -107,6 +107,10 @@ jobs: if: needs.changes.outputs.frontend == 'true' run: pnpm schema:build:json && git diff --exit-code + - name: Check if mobile replay "schema.json" is up to date + if: needs.changes.outputs.frontend == 'true' + run: pnpm mobile-replay:schema:build:json && git diff --exit-code + - name: Check toolbar bundle size if: needs.changes.outputs.frontend == 'true' uses: preactjs/compressed-size-action@v2 diff --git a/.run/PostHog.run.xml b/.run/PostHog.run.xml index df41d468add82..b36e0c48a93dc 100644 --- a/.run/PostHog.run.xml +++ b/.run/PostHog.run.xml @@ -17,7 +17,7 @@ - + @@ -48,4 +48,4 @@