This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create template with importing my gems
* https://github.com/kachick/ruby-ulid * https://github.com/kachick/rspec-matchers-power_assert_matchers The motivation is kachick/times_kachick#75
- Loading branch information
0 parents
commit 9698b95
Showing
28 changed files
with
1,579 additions
and
0 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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,15 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "08:00" | ||
timezone: "Asia/Tokyo" | ||
- package-ecosystem: "bundler" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "08:00" | ||
timezone: "Asia/Tokyo" | ||
versioning-strategy: increase |
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,28 @@ | ||
name: Deploy documents | ||
on: | ||
push: | ||
branches: [ main ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: git setting | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Kenichi Kamiya" | ||
- name: Update YARD documents and deploy to GitHub Pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
DATE=`date +"%Y%m%d-%H%M-UTC"` | ||
BRANCH_NAME="documents-$DATE" | ||
git checkout -b "$BRANCH_NAME" | ||
bundle exec yard --output-dir docs | ||
git add docs | ||
git commit -m 'Update YARD documents' docs | ||
git push origin "$BRANCH_NAME":gh-pages --force |
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,25 @@ | ||
# https://docs.github.com/ja/actions/reference/workflow-syntax-for-github-actions | ||
name: Lint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'docs/**' | ||
pull_request: null # This enables to run on each PRs | ||
jobs: | ||
rubocop: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' | ||
ruby: ['3.0'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- run: bundle exec rake 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,51 @@ | ||
# https://docs.github.com/ja/actions/reference/workflow-syntax-for-github-actions | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'benchmark/**' | ||
- 'bin/**' | ||
- 'scripts/**' | ||
- 'sig/**' | ||
- 'Steepfile' | ||
- '**.md' | ||
- '*LICENSE*' | ||
- 'logo.png' | ||
- '.yardopts' | ||
- '.editorconfig' | ||
- '.rubocop.yml' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'benchmark/**' | ||
- 'bin/**' | ||
- 'scripts/**' | ||
- 'sig/**' | ||
- 'Steepfile' | ||
- '**.md' | ||
- '*LICENSE*' | ||
- 'logo.png' | ||
- '.yardopts' | ||
- '.editorconfig' | ||
- '.rubocop.yml' | ||
jobs: | ||
test_behaviors: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' | ||
ruby: [2.5, 2.6, 2.7, '3.0', head] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
env: | ||
BUNDLE_WITHOUT: development | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- run: bundle exec rake test_behaviors |
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: Signature - rbs & YARD | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'benchmark/**' | ||
- 'bin/**' | ||
- 'scripts/**' | ||
- 'test/**' | ||
- 'spec/**' | ||
- 'logo.png' | ||
- '.rubocop.yml' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'benchmark/**' | ||
- 'bin/**' | ||
- 'scripts/**' | ||
- 'test/**' | ||
- 'spec/**' | ||
- 'logo.png' | ||
- '.rubocop.yml' | ||
jobs: | ||
validate_signatures: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' | ||
ruby: ['3.0'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- run: bundle exec rake validate_signatures |
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,28 @@ | ||
/coverage/ | ||
/pkg/ | ||
/spec/reports/ | ||
/test/tmp/ | ||
/tmp/ | ||
|
||
.rspec_status | ||
|
||
# Used by dotenv library to load environment variables. | ||
.env | ||
.env.production | ||
|
||
# Ignore Byebug command history file. | ||
.byebug_history | ||
|
||
## Documentation cache and generated files: | ||
/.yardoc/ | ||
/_yardoc/ | ||
/doc/ | ||
/rdoc/ | ||
|
||
## Environment normalization: | ||
/.bundle/ | ||
/vendor/ | ||
|
||
*.lock | ||
|
||
.DS_Store |
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,2 @@ | ||
--color | ||
--require spec_helper |
Oops, something went wrong.