Skip to content

feat: conversations widget #8038

feat: conversations widget

feat: conversations widget #8038

Workflow file for this run

name: Library checks
on:
pull_request:
push:
branches:
- main
jobs:
unit:
name: Unit tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
- run: pnpm test:unit
integration:
name: Playwright E2E tests
runs-on: depot-ubuntu-latest-8
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup environment
uses: ./.github/actions/setup
with:
build: false
- uses: ./.github/actions/is-affected
id: is-affected
with:
package-name: posthog-js
- name: Build package
run: pnpm build
if: steps.is-affected.outputs.is-affected == 'true'
- name: Install Playwright Browsers
if: steps.is-affected.outputs.is-affected == 'true'
run: pnpm exec playwright install --with-deps
working-directory: packages/browser
- name: Run Playwright tests
if: steps.is-affected.outputs.is-affected == 'true'
run: pnpm exec playwright test --workers=5
working-directory: packages/browser
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() && steps.is-affected.outputs.is-affected == 'true' }}
with:
name: playwright-report
path: packages/browser/playwright-report/
retention-days: 30
functional:
name: Functional tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
with:
build: true
- run: pnpm test:functional
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
- name: Lint all packages
run: pnpm lint
write-mangled-property-names:
name: Write mangled property names
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
with:
build: false
- name: Build posthog-js
run: pnpm exec turbo --filter=posthog-js build
env:
WRITE_MANGLED_PROPERTIES: 1
- run: git diff --exit-code # fail if e.g. the mangled properties list has changed, see rollup.config.js