diff options
author | Jeremy Evans <code@jeremyevans.net> | 2023-01-19 15:33:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 15:33:11 -0800 |
commit | 259557c07bd8954cad59b738cd8fe27abdc997de (patch) | |
tree | b51a35f3b13b09ed9b2d0d4461bb56fb38647936 | |
parent | c2da26b8cfefd9e0a37823553496f04bef699b95 (diff) | |
download | rack-259557c07bd8954cad59b738cd8fe27abdc997de.tar.gz |
Try to fix CI issue on Ruby 2.5 (#2021)
* Try to fix CI issue on Ruby 2.5
* Add CI environment variable in CI
Don't install rdoc in CI (should fix ruby 2.5 CI issue due to pysch).
Don't install bake-test-external in CI tests not using it.
Move webrick to the test group in the Gemfile.
-rw-r--r-- | .github/workflows/test-external.yaml | 2 | ||||
-rw-r--r-- | .github/workflows/test.yaml | 2 | ||||
-rw-r--r-- | Gemfile | 15 |
3 files changed, 13 insertions, 6 deletions
diff --git a/.github/workflows/test-external.yaml b/.github/workflows/test-external.yaml index 59c25ef4..8bb08027 100644 --- a/.github/workflows/test-external.yaml +++ b/.github/workflows/test-external.yaml @@ -14,6 +14,8 @@ jobs: ruby: ['2.7', '3.0', '3.1'] runs-on: ${{matrix.os}} + env: + CI: external steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 697b3cd2..bed3de9f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -26,6 +26,8 @@ jobs: - os: macos-latest ruby: '3.1' runs-on: ${{matrix.os}} + env: + CI: spec steps: - uses: actions/checkout@v3 @@ -4,18 +4,21 @@ source 'https://rubygems.org' gemspec -gem "webrick" - group :maintenance, optional: true do gem "rubocop", require: false gem "rubocop-packaging", require: false end -group :doc do - gem 'rdoc' +unless ENV['CI'] + group :doc do + gem 'rdoc' + end end group :test do - gem 'minitest' - gem 'bake-test-external', '~> 0.1.3' + gem "webrick" + + unless ENV['CI'] == 'spec' + gem 'bake-test-external', '~> 0.1.3' + end end |