Skip to content

Commit

Permalink
Add rubocop as CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Apr 18, 2024
1 parent d35e996 commit dcc241e
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release docekr image
name: Release docker image
on:
workflow_run:
workflows: [test]
workflows: [Automated Quality Control]
branches: [master]
types: [completed]
env:
Expand Down
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
11 changes: 0 additions & 11 deletions .github/workflows/test.yaml

This file was deleted.

1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ group :development, :test do
end

gem "pg", "~> 1.5"
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 @@ -17,6 +17,7 @@ GEM
zeitwerk (~> 2.3)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
base62-rb (0.3.1)
bcp47 (0.3.3)
i18n
Expand Down Expand Up @@ -172,9 +173,11 @@ GEM
io-console (0.5.11)
irb (1.4.2)
reline (>= 0.3.0)
json (2.7.2)
jwt (2.7.1)
kramdown (2.4.0)
rexml
language_server-protocol (3.17.0.3)
method_source (1.0.0)
mime-types (3.5.1)
mime-types-data (~> 3.2015)
Expand Down Expand Up @@ -207,6 +210,10 @@ GEM
multi_xml (~> 0.5)
rack (>= 1.2, < 4)
oj (3.11.0)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pastel (0.8.0)
tty-color (~> 0.5)
pg (1.5.6)
Expand All @@ -221,8 +228,10 @@ GEM
nio4r (~> 2.0)
racc (1.7.3)
rack (2.2.8)
rainbow (3.1.1)
rake (13.1.0)
redis (4.8.1)
regexp_parser (2.9.0)
reline (0.3.1)
io-console (~> 0.5)
rest-client (2.1.0)
Expand All @@ -245,6 +254,20 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.63.2)
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.31.2)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sequel (5.42.0)
sidekiq (6.5.12)
Expand Down Expand Up @@ -301,6 +324,7 @@ DEPENDENCIES
factory_bot (~> 6.1)
pg (~> 1.5)
rspec (~> 3.10)
rubocop (~> 1.63.2)
webmock (~> 3.11)

BUNDLED WITH
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ new_release:
docker compose run inferno bundle exec rake au_core:generate

tests:
docker build -t au-core-rspec-tests .
docker run -e APP_ENV=test au-core-rspec-tests bundle exec rspec
docker compose run -e APP_ENV=test inferno bundle exec rspec

run:
docker compose build
Expand All @@ -28,3 +27,6 @@ stop:

down:
docker compose down

rubocop:
docker compose run inferno rubocop

0 comments on commit dcc241e

Please sign in to comment.