Skip to content

Commit e1a7169

Browse files
committed
ci: Add linting step for Bug mocks in CI workflow
1 parent 0eea0c8 commit e1a7169

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ jobs:
5151
run: dart format packages/dart/test/src
5252
- name: Lint
5353
run: dart format --output=none --set-exit-if-changed packages/dart
54+
- name: Rollback uncommitted changes for Fix Bug mocks
55+
run: |
56+
git status --porcelain
57+
if [ -n "$(git status --porcelain)" ]; then
58+
echo "There are uncommitted changes. Rolling back the following files:"
59+
git checkout -- test/src/network/parse_query_test.mocks.dart test/src/objects/parse_object/parse_object_test.mocks.dart
60+
else
61+
echo "No uncommitted changes found."
62+
fi
5463
- name: Publish dry run
5564
run: cd packages/dart && dart pub publish --dry-run
5665
- name: Run tests

0 commit comments

Comments
 (0)