Skip to content

Commit

Permalink
Merge pull request #78 from rubygems/actions
Browse files Browse the repository at this point in the history
Enabled GitHub Actions
  • Loading branch information
hsbt authored Dec 21, 2023
2 parents eb01bbb + ce898c4 commit 00c58ab
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 9 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test

on: [push, pull_request]

jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 3.0

test:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run test
run: bundle exec rake test
9 changes: 7 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gemspec

gem "webrick", "~> 1.7"
gem "minitest", "~> 5.7"
gem "rdoc", "< 7", ">= 4.0"
gem "builder", "~> 3.2"
gem "rubygems-generate_index"
gem "rake"
6 changes: 0 additions & 6 deletions rubygems-mirror.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,4 @@ Gem::Specification.new do |s|
s.specification_version = 4

s.add_runtime_dependency(%q<net-http-persistent>.freeze, ["~> 2.9"])
s.add_development_dependency(%q<webrick>.freeze, ["~> 1.7"])
s.add_development_dependency(%q<minitest>.freeze, ["~> 5.7"])
s.add_development_dependency(%q<rdoc>.freeze, ["< 7", ">= 4.0"])
s.add_development_dependency(%q<builder>.freeze, ["~> 3.2"])
s.add_development_dependency(%q<rubygems-generate_index>.freeze)
s.add_development_dependency(%q<rake>.freeze)
end
1 change: 0 additions & 1 deletion test/test_gem_mirror.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
gem 'builder'
require 'builder/xchar'

require "rubygems_plugin"
Expand Down

0 comments on commit 00c58ab

Please sign in to comment.