Skip to content

Commit

Permalink
ci: install only gems required for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 16, 2024
1 parent 4670f8f commit 13e4e3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install as gem
env:
BUNDLE_PATH__SYSTEM: "true"
BUNDLE_WITHOUT: "benchmark:development"
run: |
rake install
bundle install
- name: Test
run: |
ruby -run -e mkdir -- tmp
Expand Down
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gemspec

group :development do
gem "benchmark_driver"
gem "bundler"
gem "rake"
end

group :benchmark do
gem "benchmark_driver"
end

group :test do
gem "test-unit"
gem "test-unit-ruby-core"
end

0 comments on commit 13e4e3e

Please sign in to comment.