-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run tests in CI #274
run tests in CI #274
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I would scope down the GitHub token to only have limited read permissions
permissions:
contents: read
@@ -442,19 +442,19 @@ test("Test getting nodes by test type", () => { | |||
expect( | |||
matchByTestType('data') | |||
).toStrictEqual( | |||
[7] | |||
[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leahwicz could you (or someone from the Core team) confirm that the changes to these tests are correct? I think that these test were invalid and, if I'm reading this correctly, the node with id=7 is a generic/schema, not a singular/data test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emmyoop could you be a second pair of eyes here please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drewbanin agreed that the test type seems incorrect. Good catch. While in there, you should add a node (id=8) for a singular/data test to test against on lines 445/451 to make the test a bit more complete.
50ba788
to
bb727de
Compare
bb727de
to
cd18dd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Always nice to get a touch more testing!
Description
This PR runs automated tests in PRs via a github workflow
Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.