Skip to content

Commit

Permalink
Add cache check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
apainintheneck committed Dec 11, 2023
1 parent e17d103 commit 52c245c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:

- name: Outdated readme check
run: bundle exec rake readme:outdated

- name: Outdated cache check
run: bundle exec rake cache:outdated
tests:
needs: docs
strategy:
Expand Down
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,15 @@ namespace "readme" do
end
end
end

namespace "cache" do
desc "Check if the cache needs to be regenerated"
task :outdated do
sh "bundle exec ruby script/generate_search_index.rb outdated"
end

desc "Regenerate the cache"
task :generate do
sh "bundle exec ruby script/generate_search_index.rb generate"
end
end

0 comments on commit 52c245c

Please sign in to comment.