Skip to content

Commit a75de5f

Browse files
committed
ci: 🎡 cron: check sizes of generated json files
1 parent 745406e commit a75de5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/cron.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
- name: Build JSON files
4141
run: bin/console build
4242

43+
- name: Check sizes of JSON files
44+
run: |
45+
# The largest file should be smaller thant 30000 bytes
46+
test $(du -ab docs/api/v1 | sort -nr | head -2 | tail -1 | awk '{print $1}') -lt 30000
47+
# The smallest file should be larger than 300 bytes
48+
test $(du -ab docs/api/v1 | sort -n | head -1 | awk '{print $1}') -gt 300
49+
4350
- name: Check diff
4451
id: diff
4552
run: |

0 commit comments

Comments
 (0)