-
Notifications
You must be signed in to change notification settings - Fork 34
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
GitHub Test Annotations #648
Conversation
🦋 Changeset detectedLatest commit: ec0ce9e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There's a slight issue with this approach and will need some good documentation around it. At the moment if a project uses only a single I would like to encourage users to create separate Eg.
jest.config.ts
This will create two separate check runs Alternative, you could choose to not label one with a displayName. Eg.
jest.config.ts
This will alsos create two separate check runs |
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.
Exciting 🙌
I think this We could hash |
annotations, | ||
conclusion, | ||
summary, | ||
title: `${build} ${isOk ? 'passed' : 'failed'}`, |
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.
Not for this PR, but I'd be interested to see whether we can extend this with coverage in future. It would be neat if we could compare against the default branch a la Codecov; could we try to retrieve details of the equivalent check run on the head commit for comparison?
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.
Might be able to grab it from the test result https://github.com/facebook/jest/blob/8f2cdad7694f4c217ac779d3f4e3a150b5a3d74d/packages/jest-test-result/src/types.ts#L95
Co-authored-by: Ryan Ling <[email protected]>
…' of github.com:seek-oss/skuba into github-test-annotations
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.
🙇
// Create a check run per display name. | ||
// Run in series to reduce the likelihood of exceeding GitHub rate limits. |
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.
Just double checking that this was the intent of running in series?
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.
Correcto, you wake up early as 👀
Co-authored-by: Sam Chung <[email protected]>
Resolves #638
Description
Adds a custom Jest Reporter which implements the new GitHub annotations API. This adds annotations to the
skuba test
command.This will create a separate check run per jest.config displayName