Skip to content

Commit e289a40

Browse files
committed
chore: sort snapshot lists
1 parent 7dc92b4 commit e289a40

4 files changed

Lines changed: 149 additions & 130 deletions

File tree

.github/workflows/scripts-lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,10 @@ jobs:
8181
- run: corepack enable
8282
- run: yarn --immutable
8383
- run: yarn yaml-check
84+
lists-lint:
85+
runs-on: ubuntu-24.04-arm
86+
steps:
87+
- uses: actions/checkout@v4
88+
- run: |
89+
make sort-lists
90+
git diff --exit-code

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@ license:
117117
docs:
118118
cargo doc --no-deps
119119

120+
# Lexicographical sort of lists in various config files
121+
LIST_FILES = \
122+
./src/tool/subcommands/api_cmd/test_snapshots_ignored.txt \
123+
./src/tool/subcommands/api_cmd/test_snapshots.txt
124+
125+
sort-lists: $(LIST_FILES)
126+
127+
$(LIST_FILES):
128+
sort --unique $@ -o $@
129+
130+
.PHONY: sort-lists $(LIST_FILES)
131+
120132
##
121133
## Memory Profiling
122134
##

0 commit comments

Comments
 (0)