Skip to content

Commit 4511133

Browse files
authored
deps: update ci workflows for common_enums crate (#843)
1 parent 175eb4e commit 4511133

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ jobs:
117117
else
118118
echo "api_models_changes_exist=true" >> $GITHUB_ENV
119119
fi
120+
if git diff --exit-code --quiet origin/$GITHUB_BASE_REF -- crates/common_enums/; then
121+
echo "common_enums_changes_exist=false" >> $GITHUB_ENV
122+
else
123+
echo "common_enums_changes_exist=true" >> $GITHUB_ENV
124+
fi
120125
if git diff --exit-code --quiet origin/$GITHUB_BASE_REF -- crates/common_utils/; then
121126
echo "common_utils_changes_exist=false" >> $GITHUB_ENV
122127
else
@@ -162,6 +167,10 @@ jobs:
162167
if: env.api_models_changes_exist == 'true'
163168
run: cargo hack check --each-feature --no-dev-deps -p api_models
164169

170+
- name: Cargo hack common_enums
171+
if: env.common_enums_changes_exist == 'true'
172+
run: cargo hack check --each-feature --no-dev-deps -p common_enums
173+
165174
- name: Cargo hack common_utils
166175
if: env.common_utils_changes_exist == 'true'
167176
run: cargo hack check --each-feature --no-dev-deps -p common_utils
@@ -280,6 +289,11 @@ jobs:
280289
else
281290
echo "api_models_changes_exist=true" >> $GITHUB_ENV
282291
fi
292+
if git diff --exit-code --quiet origin/$GITHUB_BASE_REF -- crates/common_enums/; then
293+
echo "common_enums_changes_exist=false" >> $GITHUB_ENV
294+
else
295+
echo "common_enums_changes_exist=true" >> $GITHUB_ENV
296+
fi
283297
if git diff --exit-code --quiet origin/$GITHUB_BASE_REF -- crates/common_utils/; then
284298
echo "common_utils_changes_exist=false" >> $GITHUB_ENV
285299
else
@@ -325,6 +339,10 @@ jobs:
325339
if: env.api_models_changes_exist == 'true'
326340
run: cargo hack check --each-feature --no-dev-deps -p api_models
327341

342+
- name: Cargo hack common_enums
343+
if: env.common_enums_changes_exist == 'true'
344+
run: cargo hack check --each-feature --no-dev-deps -p common_enums
345+
328346
- name: Cargo hack common_utils
329347
if: env.common_utils_changes_exist == 'true'
330348
run: cargo hack check --each-feature --no-dev-deps -p common_utils

0 commit comments

Comments
 (0)