We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78f8b46 commit facc5e0Copy full SHA for facc5e0
.github/workflows/check-lines.yml renamed to .github/workflows/tests.yml
@@ -14,7 +14,7 @@ jobs:
14
15
steps:
16
- name: Checkout repository
17
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
18
19
- name: Run check-lines.sh script
20
- run: ./tests/check-lines.sh
+ run: ./tests/check-test-data-tabs.sh
tests/check-lines.sh
tests/check-test-data-tabs.sh
@@ -0,0 +1,13 @@
1
+#!/bin/bash
2
+
3
+# Ensure every line has the same number of tabs
4
5
+HISTOGRAM=$(cat TEST-DATA.tsv | tr -cd '\t\n' | tr '\t' '.' | sed '${/^$/d;}' | sort | uniq -c)
6
+echo $HISTOGRAM
7
8
+if [ $(echo $HISTOGRAM | wc -w) -eq 2 ]; then
9
+ echo "✅ All lines have the same number of tabs"
10
+else
11
+ echo "❌ Not all lines have the same number of tabs"
12
+ exit 1
13
+fi
0 commit comments