Skip to content
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

[Draft][OE] Adds TS check workflow #6586

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ashwin-pc
Copy link
Member

@ashwin-pc ashwin-pc commented Apr 22, 2024

Description

Adds a TS check to the github workflow. This causes increases in TS Errors to be flagged and fail the CI

Issues Resolved

Screenshot

Testing the changes

The Typescript Check in the PR's CI should pass

Changelog

  • skip

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
uses: umani/changed-files@v4.0.0
with:
repo-token: ${{ github.token }}
pattern: '^.*\.ts$'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pattern: '^.*\.ts$'
pattern: '^.*\.tsx?$'

I guess tsx should be included as well

include: '["\\.ts$"]'
- name: Detecting files changed
id: files
uses: umani/changed-files@v4.0.0
Copy link
Member

Choose a reason for hiding this comment

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

Would you consider https://github.com/tj-actions/changed-files which is more actively maintained?

@ashwin-pc ashwin-pc marked this pull request as draft May 2, 2024 16:40
@ashwin-pc ashwin-pc marked this pull request as ready for review May 2, 2024 16:40
@ashwin-pc
Copy link
Member Author

@SuZhou-Joe @ruanyl , thanks for reviewing this. This PR isnt ready for review yet, but i cant put it in draft cause the CI wont run if it is, and i need it to test the github workflow. Will let you know once this is ready :)

@ashwin-pc ashwin-pc changed the title [OE] Adds TS check workflow [Draft][OE] Adds TS check workflow May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distinguished-contributor operational excellence Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants