diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..1f4cd9b --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,5 @@ +# package-ecosystem: bundler, directories: / +/Gemfile @increments/qiita-dev-group + +# package-ecosystem: github-actions, directories: / +/.github/workflows @increments/qiita-dev-group diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f89f701 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,22 @@ +version: 2 +updates: + - package-ecosystem: "bundler" + directory: "/" + schedule: + interval: "weekly" + day: "sunday" + timezone: "Asia/Tokyo" + versioning-strategy: increase + open-pull-requests-limit: 5 + cooldown: + default-days: 7 + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day: "sunday" + timezone: "Asia/Tokyo" + open-pull-requests-limit: 5 + cooldown: + default-days: 7 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c19cc50 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Run rspec, rubocop + +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + rspec: + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + ruby: [3.4, 4.0] + steps: + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 + with: + bundler-cache: true + ruby-version: ${{ matrix.ruby }} + - run: bundle exec rspec + + rubocop: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: ruby/setup-ruby@4c24fa5ec04b2e79eb40571b1cee2a0d2b705771 # v1.278.0 + with: + bundler-cache: true + ruby-version: 3.4 + + - name: Run rubocop + run: bundle exec rubocop diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0bce58c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: ruby -rvm: - - 2.5.7 - - 2.6.7 - - 2.7.2 -before_install: - - gem update bundler -script: bundle exec rake ci -sudo: false -cache: bundler diff --git a/Gemfile b/Gemfile index 96c65aa..c87c6f4 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ source 'https://rubygems.org' gemspec group :development, :test do + gem 'base64' # For rubocop gem 'rake', '~> 12.0' gem 'rspec', '~> 3.2' gem 'rubocop', '~> 0.52' diff --git a/README.md b/README.md index f37942f..0643441 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Gem Version](http://img.shields.io/gem/v/increments-schedule.svg?style=flat)](http://badge.fury.io/rb/increments-schedule) -[![Build Status](https://travis-ci.org/increments/increments-schedule.svg?branch=master&style=flat)](https://travis-ci.org/increments/increments-schedule) +[![Build Status](https://github.com/increments/increments-schedule/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/increments/increments-schedule/actions/workflows/test.yml) # Increments::Schedule diff --git a/increments-schedule.gemspec b/increments-schedule.gemspec index 86f6a15..662ba4b 100644 --- a/increments-schedule.gemspec +++ b/increments-schedule.gemspec @@ -22,5 +22,5 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency 'holiday_japan', '~> 1.1' - spec.add_development_dependency 'bundler', '~> 2.2' + spec.add_development_dependency 'bundler' end