-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
265 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- | ||
First of all, thanks for your report/suggestion/whatever! | ||
This template is for bug reports. If you are reporting a bug, please continue on. If you are here for another reason, | ||
feel free to skip the rest of this template. | ||
--> | ||
|
||
### Tell us about your environment | ||
|
||
**Ruby version:** | ||
|
||
**`litecable` gem version:** | ||
|
||
**`anycable` gem version:** | ||
|
||
**`grpc` gem version:** | ||
|
||
### What did you do? | ||
|
||
### What did you expect to happen? | ||
|
||
### What actually happened? | ||
|
||
<!-- | ||
Please, provide reproduction script (using this template (https://github.com/anycable/anycable/blob/master/etc/bug_report_template.rb) | ||
when submitting bugs if possible. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- | ||
First of all, thanks for contributing! | ||
If it's a typo fix or minor documentation update feel free to skip the rest of this template! | ||
--> | ||
|
||
## Summary | ||
|
||
<!-- | ||
If it's a bug fix, then link it to the issue, for example: | ||
Fixes #xxx | ||
--> | ||
|
||
## Changes | ||
|
||
- [ ] Change A | ||
|
||
### Checklist | ||
|
||
- [ ] I've added tests for this change | ||
- [ ] I've added a Changelog entry | ||
- [ ] I've updated Readme | ||
|
||
<!-- | ||
--- | ||
Add any additional information in the end of the description after a horizontal line | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Lint Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "README.md" | ||
- "CHANGELOG.md" | ||
pull_request: | ||
paths: | ||
- "README.md" | ||
- "CHANGELOG.md" | ||
|
||
jobs: | ||
markdownlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- name: Run Markdown linter | ||
run: | | ||
gem install mdl | ||
mdl CHANGELOG.md README.md | ||
rubocop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- name: Lint Markdown files with RuboCop | ||
run: | | ||
gem install bundler | ||
bundle install --gemfile gemfiles/rubocop.gemfile --jobs 4 --retry 3 | ||
bundle exec --gemfile gemfiles/rubocop.gemfile rubocop -c .rubocop-md.yml | ||
forspell: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Hunspell | ||
run: | | ||
sudo apt-get install hunspell | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- name: Cache installed gems | ||
uses: actions/cache@v1 | ||
with: | ||
path: /home/runner/.rubies/ruby-2.7.0/lib/ruby/gems/2.7.0 | ||
key: gems-cache-${{ runner.os }} | ||
- name: Install Forspell | ||
run: gem install forspell | ||
- name: Run Forspell | ||
run: forspell CHANGELOG.md README.md | ||
liche: | ||
runs-on: ubuntu-latest | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13.x | ||
- name: Run liche | ||
run: | | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
go get -u github.com/raviqqe/liche | ||
liche README.md CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Lint Ruby | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
rubocop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
- name: Lint Ruby code with RuboCop | ||
run: | | ||
gem install bundler | ||
bundle install --gemfile gemfiles/rubocop.gemfile --jobs 4 --retry 3 | ||
bundle exec --gemfile gemfiles/rubocop.gemfile rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_JOBS: 4 | ||
BUNDLE_RETRY: 3 | ||
BUNDLE_FORCE_RUBY_PLATFORM: 1 | ||
CI: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: ["2.5", "2.6", "2.7", "truffleruby"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: /home/runner/bundle | ||
key: bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }} | ||
restore-keys: | | ||
bundle-${{ matrix.ruby }}- | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- name: Bundle install | ||
run: | | ||
bundle config path /home/runner/bundle | ||
bundle config --global gemfile ${{ matrix.gemfile }} | ||
bundle install | ||
bundle update | ||
- name: Run RSpec | ||
run: | | ||
bundle exec rspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ Gemfile.local | |
*.gem | ||
tmp/ | ||
coverage/ | ||
gemfiles/*.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rules "~MD013", "~MD033", "~MD041" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
inherit_from: ".rubocop.yml" | ||
|
||
require: | ||
- rubocop-md | ||
|
||
|
||
AllCops: | ||
Include: | ||
- '**/*.md' | ||
|
||
Lint/Void: | ||
Exclude: | ||
- '**/*.md' | ||
|
||
Lint/DuplicateMethods: | ||
Exclude: | ||
- '**/*.md' | ||
|
||
# See https://github.com/rubocop-hq/rubocop/issues/4222 | ||
Lint/AmbiguousBlockAssociation: | ||
Exclude: | ||
- '**/*.md' | ||
|
||
|
||
Naming/FileName: | ||
Exclude: | ||
- '**/*.md' | ||
|
||
Layout/InitialIndentation: | ||
Exclude: | ||
- 'CHANGELOG.md' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
eval_gemfile "gemfiles/rubocop.gemfile" | ||
|
||
# Specify your gem's dependencies in litecable.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Format: one word per line. Empty lines and #-comments are supported too. | ||
# If you want to add word with its forms, you can write 'word: example' (without quotes) on the line, | ||
# where 'example' is existing word with the same possible forms (endings) as your word. | ||
# Example: deduplicate: duplicate | ||
Adapterize | ||
Hanami |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "https://rubygems.org" do | ||
gem "rubocop-md", "~> 0.3" | ||
gem "standard", "~> 0.2.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.