Skip to content

Commit

Permalink
ci: run examples to check if they break
Browse files Browse the repository at this point in the history
  • Loading branch information
Amine Mike committed Jan 8, 2025
1 parent 9a48652 commit e4df443
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -58,7 +64,7 @@ setup:

[group('develop')]
[group('test')]
test *args:
test *args: examples
bundle exec rake test {{ if args == '' { '' } else { '-- ' + args } }}

[group('lint')]
Expand Down

0 comments on commit e4df443

Please sign in to comment.