Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ jobs:
- os: ubuntu-latest
ruby: jruby
flags: "--test --cucumber"
# TEMPORARY: Disable truffleruby due to some issues with bundler
# - os: ubuntu-latest
# ruby: truffleruby
# flags: "--test --cucumber"
- os: ubuntu-latest
ruby: truffleruby
flags: "--test --cucumber"
- os: macos-latest
ruby: "4.0"
flags: "--test --cucumber"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_STORE
.bundle/
.claude/
.yardoc/
Gemfile.lock
coverage/
Expand Down
2 changes: 2 additions & 0 deletions .toys/.data/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ repo: cloudevents/sdk-ruby
git_user_name: CNCF CloudEvents Bot
git_user_email: cncfcloudevents@gmail.com
signoff_commits: true
update_existing_requests: true
issue_number_suffix_handling: delete

gems:
- name: cloud_events
Expand Down
6 changes: 3 additions & 3 deletions .toys/.toys.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

toys_version! ">= 0.19"
toys_version! ">= 0.20"

expand :clean, paths: :gitignore
expand :clean, paths: :gitignore, preserve: ".claude/"

expand :minitest, libs: ["lib"], bundler: true

Expand All @@ -19,4 +19,4 @@

expand :gem_build, name: "install", install_gem: true

load_gem "toys-release", version: "~> 0.4", as: "release"
load_gem "toys-release", version: ">= 0.8.1", as: "release"
31 changes: 18 additions & 13 deletions .toys/ci.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# frozen_string_literal: true

load_git remote: "https://github.com/dazuma/toys.git",
path: "common-tools/ci",
update: 3600
load_gem "toys-ci"

desc "Run all CI checks"
desc "CI target that runs CI jobs in this repo"

expand("toys-ci") do |toys_ci|
toys_ci.only_flag = true
toys_ci.fail_fast_flag = true
toys_ci.job("Bundle update", flag: :bundle, exec: ["bundle", "update", "--all"])
toys_ci.job("Rubocop", flag: :rubocop, tool: ["rubocop"])
toys_ci.job("Tests", flag: :test, tool: ["test"])
toys_ci.job("Cucumber", flag: :cucumber, tool: ["cucumber"])
toys_ci.job("Yardoc", flag: :yard, tool: ["yardoc"])
toys_ci.job("Gem build", flag: :build, tool: ["build"])
flag :bundle_update, "--update", "--bundle-update", desc: "Update instead of install bundles"

expand(Toys::CI::Template) do |ci|
ci.only_flag = true
ci.fail_fast_flag = true

ci.job("Bundle install", flag: :bundle) do
cmd = bundle_update ? ["bundle", "update", "--all"] : ["bundle", "install"]
exec(cmd, name: "Bundle").success?
end

ci.tool_job("Rubocop", ["rubocop"], flag: :rubocop)
ci.tool_job("Tests", ["test"], flag: :test)
ci.tool_job("Cucumber", ["cucumber"], flag: :cucumber)
ci.tool_job("Yardoc", ["yardoc"], flag: :yard)
ci.tool_job("Gem build", ["build"], flag: :build)
end