From 29efe157d171472bc0ca0652db35c1088b1a0b1b Mon Sep 17 00:00:00 2001 From: r7kamura Date: Thu, 9 Oct 2025 12:31:02 +0900 Subject: [PATCH] Add GitHub Actions CI workflow --- .github/workflows/ci.yml | 26 +++++++ .gitignore | 1 - .travis.yml | 23 ------ Gemfile.lock | 147 +++++++++++++++++++++++++++++++++++++++ Gemfile.rails-3.2 | 6 -- Gemfile.rails-4.2 | 6 -- Gemfile.rails-5.2 | 6 -- Gemfile.rails-6.0 | 6 -- README.md | 2 +- 9 files changed, 174 insertions(+), 49 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml create mode 100644 Gemfile.lock delete mode 100644 Gemfile.rails-3.2 delete mode 100644 Gemfile.rails-4.2 delete mode 100644 Gemfile.rails-5.2 delete mode 100644 Gemfile.rails-6.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8b96564 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + name: Ruby ${{ matrix.ruby }} + strategy: + fail-fast: false + matrix: + ruby: + - '3.2' + - '3.3' + - '3.4' + steps: + - uses: actions/checkout@v5 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - run: bundle exec rspec --force-color diff --git a/.gitignore b/.gitignore index a955cfa..d0602b1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ .bundle .config .yardoc -Gemfile.lock InstalledFiles _yardoc coverage diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3c8e02f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: ruby -sudo: false -rvm: - - 2.3.8 - - 2.4.5 - - 2.5.3 - - 2.6.1 - - jruby-9.1.10.0 - - jruby-9.2.7.0 -gemfile: - - Gemfile - - Gemfile.rails-3.2 - - Gemfile.rails-4.2 - - Gemfile.rails-5.2 - - Gemfile.rails-6.0 -matrix: - exclude: - - rvm: 2.3.8 - gemfile: Gemfile.rails-6.0 - - rvm: 2.4.5 - gemfile: Gemfile.rails-6.0 - - rvm: jruby-9.1.10.0 - gemfile: Gemfile.rails-6.0 diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..1b753d7 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,147 @@ +PATH + remote: . + specs: + rack-tracker (1.13.0) + activesupport (>= 3.0) + rack (>= 1.4) + tilt (>= 1.4) + +GEM + remote: https://rubygems.org/ + specs: + actionpack (8.0.3) + actionview (= 8.0.3) + activesupport (= 8.0.3) + nokogiri (>= 1.8.5) + rack (>= 2.2.4) + rack-session (>= 1.0.1) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + useragent (~> 0.16) + actionview (8.0.3) + activesupport (= 8.0.3) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activesupport (8.0.3) + base64 + benchmark (>= 0.3) + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + logger (>= 1.4.2) + minitest (>= 5.1) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) + uri (>= 0.13.1) + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) + base64 (0.3.0) + benchmark (0.4.1) + bigdecimal (3.3.0) + builder (3.3.0) + capybara (2.18.0) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (>= 2.0, < 4.0) + coderay (1.1.3) + concurrent-ruby (1.3.5) + connection_pool (2.5.4) + crass (1.0.6) + diff-lcs (1.6.2) + drb (2.2.3) + erubi (1.13.1) + i18n (1.14.7) + concurrent-ruby (~> 1.0) + logger (1.7.0) + loofah (2.24.1) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + method_source (1.1.0) + mini_mime (1.1.5) + minitest (5.26.0) + nokogiri (1.18.10-aarch64-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.10-aarch64-linux-musl) + racc (~> 1.4) + nokogiri (1.18.10-arm-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.10-arm-linux-musl) + racc (~> 1.4) + nokogiri (1.18.10-arm64-darwin) + racc (~> 1.4) + nokogiri (1.18.10-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.18.10-x86_64-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.10-x86_64-linux-musl) + racc (~> 1.4) + pry (0.15.2) + coderay (~> 1.1) + method_source (~> 1.0) + public_suffix (6.0.2) + racc (1.8.1) + rack (3.2.2) + rack-session (2.1.1) + base64 (>= 0.1.0) + rack (>= 3.0.0) + rack-test (2.2.0) + rack (>= 1.3) + rails-dom-testing (2.3.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.2) + loofah (~> 2.21) + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) + rake (13.3.0) + rspec (3.13.1) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.5) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.5) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.5) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.6) + securerandom (0.4.1) + tilt (2.6.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + uri (1.0.4) + useragent (0.16.11) + xpath (3.2.0) + nokogiri (~> 1.8) + +PLATFORMS + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-gnu + arm-linux-musl + arm64-darwin + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl + +DEPENDENCIES + actionpack (>= 3.0) + bundler (>= 1.16) + capybara (~> 2.4) + pry + rack-tracker! + rake + rspec (~> 3.2) + +BUNDLED WITH + 2.6.9 diff --git a/Gemfile.rails-3.2 b/Gemfile.rails-3.2 deleted file mode 100644 index 93fffb5..0000000 --- a/Gemfile.rails-3.2 +++ /dev/null @@ -1,6 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem 'activesupport', '~> 3.2.0' -gem 'actionpack', '~> 3.2.0' diff --git a/Gemfile.rails-4.2 b/Gemfile.rails-4.2 deleted file mode 100644 index 06a473e..0000000 --- a/Gemfile.rails-4.2 +++ /dev/null @@ -1,6 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem 'activesupport', '~> 4.2.0' -gem 'actionpack', '~> 4.2.0' diff --git a/Gemfile.rails-5.2 b/Gemfile.rails-5.2 deleted file mode 100644 index 47e7c4c..0000000 --- a/Gemfile.rails-5.2 +++ /dev/null @@ -1,6 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem 'activesupport', '~> 5.2.0' -gem 'actionpack', '~> 5.2.0' diff --git a/Gemfile.rails-6.0 b/Gemfile.rails-6.0 deleted file mode 100644 index ee3fb05..0000000 --- a/Gemfile.rails-6.0 +++ /dev/null @@ -1,6 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem 'activesupport', '~> 6.0.0' -gem 'actionpack', '~> 6.0.0' diff --git a/README.md b/README.md index e1b7927..dce42f3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rack::Tracker -[![Code Climate](https://codeclimate.com/github/railslove/rack-tracker/badges/gpa.svg)](https://codeclimate.com/github/railslove/rack-tracker) [![Build Status](https://travis-ci.org/railslove/rack-tracker.svg?branch=master)](https://travis-ci.org/railslove/rack-tracker) +[![CI](https://github.com/railslove/rack-tracker/actions/workflows/ci.yml/badge.svg)](https://github.com/railslove/rack-tracker/actions/workflows/ci.yml) ## Rationale