[pull] master from PostHog:master #2739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vector Replay Capture Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- vector/** | |
- .github/workflows/replay-capture.yml | |
workflow_call: | |
jobs: | |
vector-test: | |
name: Vector test | |
runs-on: ubuntu-20.04 | |
env: | |
QUOTA_LIMITED_TEAMS_PATH: vector/replay-capture/tests/quota_limited_teams.csv | |
OVERFLOW_SESSIONS_PATH: vector/replay-capture/tests/overflow_sessions.csv | |
KAFKA_BOOSTRAP_SERVERS: dummy:9092 | |
KAFKA_EVENTS_TOPIC: session_recording_snapshot_item_events | |
KAFKA_OVERFLOW_TOPIC: session_recording_snapshot_item_overflow | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Vector | |
run: | | |
wget https://github.com/vectordotdev/vector/releases/download/v0.40.0/vector-0.40.0-x86_64-unknown-linux-gnu.tar.gz | |
tar xzvf vector-0.40.0-x86_64-unknown-linux-gnu.tar.gz ./vector-x86_64-unknown-linux-gnu/bin/vector | |
sudo mv ./vector-x86_64-unknown-linux-gnu/bin/vector /usr/bin/vector | |
- name: Run vector tests | |
run: | | |
yq -i e 'explode(.)' vector/replay-capture/vector.yaml | |
vector test vector/replay-capture/*.yaml |