Skip to content

Commit

Permalink
Add validation task to build gem
Browse files Browse the repository at this point in the history
Preparation part for GH-544
  • Loading branch information
kachick committed Aug 28, 2024
1 parent e934910 commit 07b6d2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ jobs:
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
- run: bundle install
- run: bundle exec rake test_all --suppress-backtrace='\/bundle'
- run: bundle exec rake validate_gem
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else
RuboCop::RakeTask.new
end

multitask(default: %i[test signature_all rubocop dprint])
multitask(default: %i[test signature_all rubocop validate_gem dprint])

desc('Keep light weight!')
task(test: :test_core)
Expand Down Expand Up @@ -110,6 +110,10 @@ task(:generate_snapshots) do
ruby('./scripts/generate_snapshots.rb')
end

task(:validate_gem) do
sh('gem build --strict --norc --backtrace ruby-ulid.gemspec')
end

desc('To prevent #69 anymore!')
task(:view_packaging_files) do
remove_entry_secure('./pkg')
Expand Down

0 comments on commit 07b6d2b

Please sign in to comment.