Skip to content

Commit

Permalink
ci(CI-pr): determine modified crates more deterministically (#4233)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanchithHegde authored Mar 28, 2024
1 parent e8289f0 commit ffb3f4b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/CI-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ jobs:
# Obtain a list of workspace members
workspace_members="$(
cargo metadata --format-version 1 --no-deps \
| jq --compact-output --monochrome-output --raw-output '.workspace_members | sort | .[] | split(" ")[0]'
| jq \
--compact-output \
--monochrome-output \
--raw-output \
'(.workspace_members | sort) as $package_ids | .packages[] | select(IN(.id; $package_ids[])) | .name'
)"
PACKAGES_CHECKED=()
Expand Down Expand Up @@ -298,7 +302,11 @@ jobs:
# Obtain a list of workspace members
workspace_members="$(
cargo metadata --format-version 1 --no-deps \
| jq --compact-output --monochrome-output --raw-output '.workspace_members | sort | .[] | split(" ")[0]'
| jq \
--compact-output \
--monochrome-output \
--raw-output \
'(.workspace_members | sort) as $package_ids | .packages[] | select(IN(.id; $package_ids[])) | .name'
)"
PACKAGES_CHECKED=()
Expand Down
1 change: 0 additions & 1 deletion crates/api_models/src/bank_accounts.rs

This file was deleted.

1 change: 0 additions & 1 deletion crates/api_models/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pub mod admin;
pub mod analytics;
pub mod api_keys;
pub mod bank_accounts;
pub mod blocklist;
pub mod cards_info;
pub mod conditional_configs;
Expand Down

0 comments on commit ffb3f4b

Please sign in to comment.