Skip to content

chore: Add basic github actions PR checks#14

Merged
robbie-c merged 7 commits intomainfrom
add-pr-ci-checks
Jan 7, 2025
Merged

chore: Add basic github actions PR checks#14
robbie-c merged 7 commits intomainfrom
add-pr-ci-checks

Conversation

@robbie-c
Copy link
Member

@robbie-c robbie-c commented Jan 6, 2025

I don't have the admin powers to set up the POSTHOG_RS_E2E_TEST_API_KEY environment variable, but when that's done this can be merged :)

Obviously there's a lot more we could do here - but I wanted to get the existing test working on CI, and a test for my previous PR

let client = crate::client(env!("POSTHOG_API_KEY"));
use std::collections::HashMap;

let api_key = std::env::var("POSTHOG_RS_E2E_TEST_API_KEY").unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

Can you add an .env.example file to make it clear that we need this to run tests locally? You could also add a section to the README.md explaining that one needs to grab an API key from their instance to be able to run tests

Copy link
Member

@rafaeelaudibert rafaeelaudibert left a comment

Choose a reason for hiding this comment

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

Approving so that this can be merged once CI passes, lgtm

@robbie-c robbie-c merged commit 5bd2a3b into main Jan 7, 2025
1 check passed
@robbie-c robbie-c deleted the add-pr-ci-checks branch January 7, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants