Skip to content

Commit 92ad5f8

Browse files
committed
ci: CI設定追加
1 parent e8e175b commit 92ad5f8

File tree

3 files changed

+37
-8
lines changed

3 files changed

+37
-8
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4']
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Ruby
23+
uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: ${{ matrix.ruby-version }}
26+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
27+
- name: Run tests
28+
run: bundle exec rspec
29+

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ DEPENDENCIES
6363
rubocop-dobado_architecture!
6464

6565
BUNDLED WITH
66-
2.6.2
66+
2.5.23

rubocop-dobado_architecture.gemspec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ Gem::Specification.new do |spec|
88
spec.authors = ['ippachi']
99
spec.email = ['ippachi1018@gmail.com']
1010

11-
spec.summary = 'TODO: Write a short summary, because RubyGems requires one.'
12-
spec.description = 'TODO: Write a longer description or delete this line.'
13-
spec.homepage = "TODO: Put your gem's website or public repo URL here."
11+
spec.summary = 'DobadoArchitecture cops for RuboCop'
12+
spec.description = 'DobadoArchitecture cops for RuboCop'
13+
spec.homepage = 'https://github.com/fusic/rubocop-dobado_architecture'
1414
spec.license = 'MIT'
15-
spec.required_ruby_version = '>= 2.7.0'
15+
spec.required_ruby_version = '>= 3.0.0'
1616

17-
spec.metadata['allowed_push_host'] = "TODO: Set to your gem server 'https://example.com'"
17+
spec.metadata['allowed_push_host'] = ""
1818

1919
spec.metadata['homepage_uri'] = spec.homepage
20-
spec.metadata['source_code_uri'] = "TODO: Put your gem's public repo URL here."
21-
spec.metadata['changelog_uri'] = "TODO: Put your gem's CHANGELOG.md URL here."
20+
spec.metadata['source_code_uri'] = "https://github.com/fusic/rubocop-dobado_architecture"
21+
spec.metadata['changelog_uri'] = "https://github.com/fusic/rubocop-dobado_architecture/CHANGELOG.md"
2222

2323
# Specify which files should be added to the gem when it is released.
2424
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.

0 commit comments

Comments
 (0)