Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Create template with importing my gems
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed May 29, 2021
0 parents commit 9698b95
Show file tree
Hide file tree
Showing 28 changed files with 1,579 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
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
15 changes: 15 additions & 0 deletions .github/dependabot.yml
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
28 changes: 28 additions & 0 deletions .github/workflows/deploy_documents.yml
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
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
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
51 changes: 51 additions & 0 deletions .github/workflows/test_behaviors.yml
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
40 changes: 40 additions & 0 deletions .github/workflows/test_signatures.yml
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
28 changes: 28 additions & 0 deletions .gitignore
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
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
Loading

0 comments on commit 9698b95

Please sign in to comment.