From a2333a4c7c1347acf45153eb09988b218c7cb89b Mon Sep 17 00:00:00 2001 From: Torrey Payne <11740989+torreypayne@users.noreply.github.com> Date: Fri, 2 Oct 2026 17:20:20 +0000 Subject: [PATCH] chore(ci): run CI tasks with rake instead of toys --- .github/workflows/ci.yml | 4 ++-- .toys/.toys.rb | 6 ------ Gemfile | 2 ++ Gemfile.lock | 3 +++ Rakefile | 24 ++++++++++++++++++++++++ 5 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 Rakefile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13d88aa..7ee0a04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: ruby-version: "${{ matrix.ruby }}" - name: Install tools shell: bash - run: "bundle install && gem install --no-document toys" + run: "bundle install" - name: Test shell: bash - run: toys rubocop < /dev/null + run: bundle exec rake rubocop < /dev/null diff --git a/.toys/.toys.rb b/.toys/.toys.rb index 6d323a0..d6be817 100644 --- a/.toys/.toys.rb +++ b/.toys/.toys.rb @@ -14,12 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -expand :clean, paths: :gitignore - -expand :rubocop, bundler: true - -expand :gem_build - tool "release" do if ENV["RUBY_COMMON_TOOLS"] common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] diff --git a/Gemfile b/Gemfile index 2d7bd8a..3915432 100644 --- a/Gemfile +++ b/Gemfile @@ -15,3 +15,5 @@ source "https://rubygems.org" gemspec + +gem "rake", "~> 13.0" diff --git a/Gemfile.lock b/Gemfile.lock index ee1d326..5f8dbf9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,6 +18,7 @@ GEM prism (1.9.0) racc (1.8.1) rainbow (3.1.1) + rake (13.4.2) regexp_parser (2.12.0) rubocop (1.88.2) json (~> 2.3) @@ -44,6 +45,7 @@ PLATFORMS DEPENDENCIES google-style! + rake (~> 13.0) CHECKSUMS ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383 @@ -57,6 +59,7 @@ CHECKSUMS prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85 racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a + rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701 regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb rubocop (1.88.2) sha256=8def251c90cd955feb4daa3edc0ab56893250c4ce90ef81e6c80c03f9a939bbf rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..f040629 --- /dev/null +++ b/Rakefile @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require "bundler/gem_tasks" +require "rake/clean" +require "rubocop/rake_task" + +# The entries in .gitignore. +CLEAN.include ".bundle", "pkg", "**/.DS_Store", "**/*.gem", "node_modules", "package-lock.json" + +RuboCop::RakeTask.new