diff --git a/justfile b/justfile index f2105a0..c35f334 100644 --- a/justfile +++ b/justfile @@ -30,6 +30,12 @@ doc: doc-stats: bundle exec yard stats --list-undoc +[group('test')] +examples: + find examples/ -mindepth 2 -type f -name "*.rb" | while IFS= read -r file; do \ + bundle exec ruby "$file" > /dev/null || exit 1; \ + done + [group('publish')] gem: mkdir -p {{PKG_OUT}} @@ -58,7 +64,7 @@ setup: [group('develop')] [group('test')] -test *args: +test *args: examples bundle exec rake test {{ if args == '' { '' } else { '-- ' + args } }} [group('lint')]