Skip to content

Commit

Permalink
Add publish gem and quatlity control actions
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Oct 29, 2024
1 parent 52f96f0 commit 3b27faa
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish-gem.yaml
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 }}
15 changes: 15 additions & 0 deletions .github/workflows/quality-control.yaml
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
8 changes: 5 additions & 3 deletions Gemfile
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'
24 changes: 24 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ GEM
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
aes_key_wrap (1.1.0)
ast (2.4.2)
base62-rb (0.3.1)
base64 (0.2.0)
bcp47 (0.3.3)
Expand Down Expand Up @@ -171,6 +172,7 @@ GEM
irb (1.13.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.4)
json-jwt (1.15.3.1)
activesupport (>= 4.2)
aes_key_wrap
Expand All @@ -180,6 +182,7 @@ GEM
base64
kramdown (2.4.0)
rexml
language_server-protocol (3.17.0.3)
method_source (1.1.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
Expand Down Expand Up @@ -219,6 +222,10 @@ GEM
multi_xml (~> 0.5)
rack (>= 1.2, < 4)
oj (3.11.0)
parallel (1.26.3)
parser (3.3.5.0)
ast (~> 2.4.1)
racc
pastel (0.8.0)
tty-color (~> 0.5)
pry (0.14.2)
Expand All @@ -234,11 +241,13 @@ GEM
nio4r (~> 2.0)
racc (1.8.0)
rack (2.2.9)
rainbow (3.1.1)
rake (13.2.1)
rdoc (6.7.0)
psych (>= 4.0.0)
redis-client (0.22.2)
connection_pool
regexp_parser (2.9.2)
reline (0.5.8)
io-console (~> 0.5)
rest-client (2.1.0)
Expand All @@ -262,6 +271,20 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.63.5)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.3)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sequel (5.42.0)
sidekiq (7.2.4)
Expand Down Expand Up @@ -329,6 +352,7 @@ DEPENDENCIES
ipa_test_kit (~> 0.4.1)
ips_test_kit (~> 0.10.2)
rspec (~> 3.10)
rubocop (~> 1.63.2)
webmock (~> 3.11)

BUNDLED WITH
Expand Down
32 changes: 32 additions & 0 deletions Makefile
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

0 comments on commit 3b27faa

Please sign in to comment.