Skip to content

Commit d8c66c9

Browse files
committed
Add style-check workflow
1 parent d35231e commit d8c66c9

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,21 @@ jobs:
3131
bundler-cache: true
3232
- name: Run Unit Tests
3333
run: bundle exec rake test
34+
35+
style_check:
36+
name: "Style Check (Ruby ${{ matrix.ruby_version }})"
37+
runs-on: "ubuntu-latest"
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
ruby_version:
42+
- "3.3"
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: "Set up Ruby ${{ matrix.ruby_version }}"
46+
uses: ruby/setup-ruby@v1
47+
with:
48+
ruby-version: ${{ matrix.ruby_version }}
49+
bundler-cache: true
50+
- name: Run RuboCop
51+
run: bash script/fmt

.rubocop.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ inherit_gem:
44
rubocop-jekyll: .rubocop.yml
55

66
AllCops:
7-
TargetRubyVersion: 2.3
8-
Exclude:
9-
- vendor/**/*
7+
TargetRubyVersion: 2.7
108

119
Lint/ShadowingOuterLocalVariable:
1210
Exclude:

jekyll-archives.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
1515
all_files = `git ls-files -z`.split("\x0")
1616
s.files = all_files.grep(%r!^(lib)/!)
1717

18-
s.required_ruby_version = ">= 2.3.0"
18+
s.required_ruby_version = ">= 2.7.0"
1919

2020
s.add_dependency "jekyll", ">= 3.6", "< 5.0"
2121

0 commit comments

Comments
 (0)