mirror of
https://github.com/ms-ati/docile
synced 2023-03-27 23:21:52 -04:00

We want to be careful to avoid accidentally bringing in runtime dependencies to projects which use Docile. In this PR, we clarify explicitly that the CI-only dependency on simplecov-cobertura, which is the formatt used by CodeCov, is a test dependency, and not a runtime dependency. Without this change, it may be possible that projects which use Docile, when running in an environment with CI=true, would accidentally bring in this test-only dependency, when that isn't intended. - Remove unnecessary quoting of '3.1' in .github/workflows/main.yml
26 lines
608 B
Ruby
26 lines
608 B
Ruby
# frozen_string_literal: true
|
|
|
|
source "https://rubygems.org"
|
|
|
|
# Specify gem's runtime dependencies in docile.gemspec
|
|
gemspec
|
|
|
|
group :test do
|
|
gem "rspec", "~> 3.10"
|
|
gem "simplecov", require: false
|
|
|
|
# CI-only test dependencies go here
|
|
if ENV["CI"] == "true"
|
|
gem "simplecov-cobertura", require: false, group: "test"
|
|
end
|
|
end
|
|
|
|
# Excluded from CI except on latest MRI Ruby, to reduce compatibility burden
|
|
group :checks do
|
|
gem "panolint", github: "panorama-ed/panolint", branch: "main"
|
|
end
|
|
|
|
# Optional, only used locally to release to rubygems.org
|
|
group :release, optional: true do
|
|
gem "rake"
|
|
end
|