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

chore: add CI check for needing to run ctix #258

Open
wants to merge 1 commit into
base: @wschurman/02-20-feat_default_all_loaders_and_mutators_to_enforcing
Choose a base branch
from

Conversation

wschurman
Copy link
Member

@wschurman wschurman commented Feb 20, 2025

Why

#255 switched barreling to ctix and fully-automated it (no manual intervention). But the intention is still to have the author run the command when they add new files in case they don't want the new files to be exported in the barrel.

This PR adds a CI step to ensure that the barrels are up to date.

How

Run yarn ctix and check if working directory is dirty. If so, fail the CI run.

Test Plan

  1. Add a file with an export, Blah.ts, in src. Don't run yarn ctix.
  2. Push PR
  3. See CI failure.

Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (49742c0) to head (8d86164).

Additional details and impacted files
@@                                          Coverage Diff                                          @@
##           @wschurman/02-20-feat_default_all_loaders_and_mutators_to_enforcing      #258   +/-   ##
=====================================================================================================
  Coverage                                                               100.00%   100.00%           
=====================================================================================================
  Files                                                                       80        80           
  Lines                                                                     2071      2071           
  Branches                                                                   285       285           
=====================================================================================================
  Hits                                                                      2071      2071           
Flag Coverage Δ
integration 100.00% <ø> (ø)
unittest 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wschurman wschurman force-pushed the @wschurman/02-20-chore_add_ci_check_for_needing_to_run_ctix branch 2 times, most recently from 63622df to 09f813c Compare February 20, 2025 22:25
@wschurman wschurman force-pushed the @wschurman/02-20-chore_add_ci_check_for_needing_to_run_ctix branch from 09f813c to 8d86164 Compare February 20, 2025 22:28
@wschurman wschurman requested review from ide and quinlanj February 20, 2025 22:30
@wschurman wschurman marked this pull request as ready for review February 20, 2025 22:30
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.

1 participant