mirror of
https://github.com/usetrmnl/trmnl-liquid.git
synced 2026-04-29 13:43:18 -07:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user