From 69891dae4cf7fc25ca393648cb49894ededfa302 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Wed, 28 Jan 2026 12:01:52 -0700 Subject: [PATCH] Added Rakefile build tasks Necessary to ensure the entire project can be built (and have the ability to run individual tasks as desired). For the moment, code quality checks are disabled until more work is done. Milestone: minor --- .github/workflows/main.yml | 6 ++---- Rakefile | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d2a815..f366c9b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,12 +13,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Ruby + - name: Ruby Setup uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - - name: Run the default task + - name: Rake run: bundle exec rake - - name: Run RSpec - run: bundle exec rspec spec diff --git a/Rakefile b/Rakefile index cd510a0..50d35ec 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,19 @@ # frozen_string_literal: true -require "bundler/gem_tasks" -task default: %i[] +require "bundler/setup" +require "git/lint/rake/register" +require "reek/rake/task" +require "rspec/core/rake_task" +require "rubocop/rake_task" + +Git::Lint::Rake::Register.call +Reek::Rake::Task.new +RSpec::Core::RakeTask.new { |task| task.verbose = false } +RuboCop::RakeTask.new + +desc "Run code quality checks" +task quality: %i[git_lint reek rubocop] + +# TODO: Replace once code quality is fixed. +# task default: %i[quality spec] +task default: %i[spec]