Skip to content

Commit 7725240

Browse files
mattwebbioclaude
andcommitted
Enable GitHub Actions CI
Drop the Codecov and RubyGems.org publish steps since this fork won't configure those secrets, and remove the Pages-only docs workflow since GitHub Pages isn't being enabled either. Also pin rdoc below 8, since rdoc 8.0 pulls in rbs (a transitive dep of irb, via railties) whose native extension doesn't build on JRuby, breaking bundle install on that leg of the test matrix. This was already latent since Actions had never actually run before now. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent bc62031 commit 7725240

8 files changed

Lines changed: 6 additions & 156 deletions

File tree

.github/workflows/_test-matrix.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
required: false
99
type: boolean
1010
default: false
11-
secrets:
12-
CODECOV_TOKEN:
13-
required: false
1411

1512
permissions:
1613
contents: read
@@ -66,15 +63,6 @@ jobs:
6663
if: matrix.ruby-version == '4.0' && matrix.rails-version == 'rails-8.1'
6764
run: bundle exec appraisal ${{ matrix.rails-version }} bin/rspec-queue
6865

69-
- name: Upload coverage to Codecov
70-
if: matrix.ruby-version == '4.0' && matrix.rails-version == 'rails-8.1'
71-
uses: codecov/codecov-action@v5
72-
env:
73-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
74-
with:
75-
files: ./coverage/coverage.xml
76-
fail_ci_if_error: false
77-
7866
- name: Run the test suite with Faraday v1
7967
if: matrix.ruby-version != '4.0'
8068
run: |

.github/workflows/docs.yml

Lines changed: 0 additions & 124 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,3 @@ jobs:
8888
env:
8989
GEM_HOST_API_KEY: "Bearer ${{ secrets.GITHUB_TOKEN }}"
9090
OWNER: ${{ github.repository_owner }}
91-
92-
- name: Publish to RubyGems
93-
if: steps.check_version.outputs.version_changed == 'true'
94-
run: |
95-
mkdir -p $HOME/.gem
96-
touch $HOME/.gem/credentials
97-
chmod 0600 $HOME/.gem/credentials
98-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
99-
gem build *.gemspec
100-
output=$(gem push *.gem 2>&1) || {
101-
echo "$output"
102-
if echo "$output" | grep -q "Repushing of gem versions is not allowed"; then
103-
echo "Version already exists, skipping"
104-
exit 0
105-
else
106-
exit 1
107-
fi
108-
}
109-
env:
110-
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ group :development do # rubocop:disable Metrics/BlockLength
2121
gem 'pry', '>= 0.14'
2222
gem 'rails'
2323
gem 'rake', '>= 13.0'
24+
# rdoc >= 8 depends on rbs, whose native extension doesn't build on JRuby
25+
gem 'rdoc', '< 8'
2426
gem 'reline'
2527
gem 'rspec', '~> 3.12'
2628
gem 'rubocop', '>= 1.0'

gemfiles/rails_7.1.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ group :development do
1919
gem "pry", ">= 0.14"
2020
gem "rails", "~> 7.1.0"
2121
gem "rake", ">= 13.0"
22+
gem "rdoc", "< 8"
2223
gem "reline"
2324
gem "rspec", "~> 3.12"
2425
gem "rubocop", ">= 1.0"

gemfiles/rails_7.2.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ group :development do
1919
gem "pry", ">= 0.14"
2020
gem "rails", "~> 7.2.0"
2121
gem "rake", ">= 13.0"
22+
gem "rdoc", "< 8"
2223
gem "reline"
2324
gem "rspec", "~> 3.12"
2425
gem "rubocop", ">= 1.0"

gemfiles/rails_8.0.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ group :development do
1919
gem "pry", ">= 0.14"
2020
gem "rails", "~> 8.0.0"
2121
gem "rake", ">= 13.0"
22+
gem "rdoc", "< 8"
2223
gem "reline"
2324
gem "rspec", "~> 3.12"
2425
gem "rubocop", ">= 1.0"

gemfiles/rails_8.1.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ group :development do
1919
gem "pry", ">= 0.14"
2020
gem "rails", "~> 8.1.0"
2121
gem "rake", ">= 13.0"
22+
gem "rdoc", "< 8"
2223
gem "reline"
2324
gem "rspec", "~> 3.12"
2425
gem "rubocop", ">= 1.0"

0 commit comments

Comments
 (0)