-
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.
Add publish gem and quatlity control actions
- Loading branch information
Showing
5 changed files
with
94 additions
and
3 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,18 @@ | ||
name: Publish Gem | ||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build and publish gem | ||
uses: jstastny/publish-gem-to-github@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
owner: ${{ github.repository_owner }} |
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 @@ | ||
name: Automated Quality Control | ||
on: push | ||
jobs: | ||
Spec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup environment | ||
run: make setup | ||
- name: Run RuboCop | ||
run: make rubocop | ||
- name: Run Spec | ||
run: make tests |
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,11 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
group :development, :test do | ||
gem 'debug' | ||
gem 'ips_test_kit', '~> 0.10.2' | ||
gem 'ipa_test_kit', '~> 0.4.1' | ||
end | ||
|
||
gem 'ipa_test_kit', '~> 0.4.1' | ||
gem 'ips_test_kit', '~> 0.10.2' | ||
gem 'rubocop', '~> 1.63.2' |
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,32 @@ | ||
compose = docker compose | ||
inferno = run inferno | ||
|
||
.PHONY: pull build up stop down migrate setup run tests rubocop | ||
|
||
pull: | ||
$(compose) pull | ||
|
||
build: | ||
$(compose) build | ||
|
||
up: | ||
$(compose) up | ||
|
||
stop: | ||
$(compose) stop | ||
|
||
down: | ||
$(compose) down | ||
|
||
migrate: | ||
$(compose) $(inferno) bundle exec inferno migrate | ||
|
||
setup: pull build migrate | ||
|
||
run: build up | ||
|
||
tests: | ||
$(compose) $(inferno) bundle exec rspec | ||
|
||
rubocop: | ||
$(compose) $(inferno) rubocop |