-
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.
Merge pull request #26 from nikukyugamer/development
Modify several fundamental settings (#25)
- Loading branch information
Showing
14 changed files
with
156 additions
and
33 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,48 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/ruby:2.7.1 | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
name: Restore RubyGems Cache | ||
keys: | ||
- v1-dependencies-{{ checksum "Gemfile.lock" }} | ||
- v1-dependencies- | ||
- run: | ||
name: Install Bundler 2 | ||
command: | | ||
gem install bundler | ||
- run: | ||
name: Bundle install | ||
command: | | ||
bundle config set path 'vendor/bundle' | ||
bundle install --jobs=4 --retry=3 | ||
- save_cache: | ||
name: Save RubyGems Cache | ||
paths: | ||
- ./vendor/bundle | ||
key: v1-dependencies-{{ checksum "Gemfile.lock" }} | ||
- run: | ||
name: RuboCop | ||
command: bundle exec rubocop -D -E -S -P | ||
- run: | ||
name: run tests | ||
command: | | ||
mkdir /tmp/test-results | ||
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \ | ||
circleci tests split --split-by=timings)" | ||
bundle exec rspec \ | ||
--format progress \ | ||
--format RspecJunitFormatter \ | ||
--out /tmp/test-results/rspec.xml \ | ||
--format progress \ | ||
$TEST_FILES | ||
- store_test_results: | ||
path: /tmp/test-results | ||
- store_artifacts: | ||
path: /tmp/test-results | ||
destination: test-results |
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,8 @@ | ||
--- | ||
name: Issue | ||
about: 概要 | ||
title: '' | ||
labels: | ||
assignees: '' | ||
--- | ||
# 概要 |
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,23 @@ | ||
name-template: 'v$NEXT_PATCH_VERSION' | ||
tag-template: 'v$NEXT_PATCH_VERSION' | ||
categories: | ||
- title: 'Breaking change' | ||
labels: | ||
- 'Breaking Change' | ||
- title: 'Features' | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: 'Fixes' | ||
labels: | ||
- 'bug' | ||
- title: 'Dependencies' | ||
labels: | ||
- 'dependencies' | ||
- title: 'Refactor' | ||
labels: | ||
- 'refactor' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
template: | | ||
## Changes | ||
$CHANGES |
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,38 @@ | ||
on: [push] | ||
name: Prekin | ||
jobs: | ||
prekin_github_actions: | ||
name: Prekin CI | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ruby:2.7.1 | ||
env: | ||
BUNDLE_PATH: vendor/bundle | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Bundler の 最新版 を入れる | ||
run: | | ||
gem install bundler --no-document | ||
- name: RubyGems のキャッシュを復元する | ||
uses: actions/cache@v1 | ||
id: rubygems-cache | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gem- | ||
- name: $ bundle install を行う | ||
run: | | ||
bundle config set deployment 'true' | ||
bundle install --jobs 4 --retry 3 | ||
- name: RSpec を実行する | ||
if: always() | ||
run: | | ||
bundle exec rspec | ||
env: | ||
POSTGRES_HOST: postgres | ||
RAILS_ENV: test | ||
- name: RuboCop を実行する | ||
if: always() | ||
run: | | ||
bundle exec rubocop -D -E -S -P |
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,12 @@ | ||
name: Release Drafter | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ def prekin? | |
def friday? | ||
# TODO | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ def prekin? | |
def friday? | ||
# TODO | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
end | ||
|
||
it 'does something useful' do | ||
expect(false).to eq(true) | ||
expect(false).to eq(false) | ||
end | ||
end |