Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
pull_request:

permissions:
contents: read

jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v6.0.2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ".ruby-version"
rubygems: "4.0.16"
bundler-cache: true
- name: Run specs
run: bundle exec rspec
- name: Run RuboCop
run: bundle exec rubocop
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--require spec_helper
--format documentation
--color
28 changes: 28 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
inherit_gem:
rubocop-rails-omakase: rubocop.yml

AllCops:
inherit_mode:
merge:
- Include
override:
- Exclude
Include:
- "bin/**/*"
Exclude:
- ".git/**/*"
- "data/**/*"
- "files/**/*"
- "node_modules/**/*"
- "spec/fixtures/**/*"
- "tmp/**/*"
- "vendor/**/*"

Style/StringLiterals:
inherit_mode:
merge:
- Include
Include:
- "**/Rakefile"
- "bin/**/*"
- "spec/**/*.rb"
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.0.6
Loading