Skip to content

Commit e2ef3fe

Browse files
pftgclaude
andcommitted
chore: add bin/ci script for linter + unit tests
Simple pre-push verification: runs standardrb linter then unit tests. Exits on first failure. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0d37b4a commit e2ef3fe

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

bin/ci

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Running linter..."
5+
if ! bin/standardrb; then
6+
echo "Lint errors found. Auto-fixing..."
7+
bin/standardrb -a
8+
echo "Lint errors were auto-fixed. Please review and re-commit."
9+
exit 1
10+
fi
11+
12+
echo "Running unit tests..."
13+
bin/rake test:unit

0 commit comments

Comments
 (0)