Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub action #44

Merged
merged 2 commits into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 6 * * *'

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['2.6', '2.7', '3.0']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
70 changes: 7 additions & 63 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,84 +1,28 @@
---
AllCops:
Exclude:
- Gemfile
- Rakefile
- 'test/**/*'
- 'vendor/**/*'
- vendor/**/*
Documentation:
Enabled: false
AlignParameters:
Layout/ParameterAlignment:
Enabled: true
Encoding:
Enabled: false
HashSyntax:
Enabled: true
LineLength:
Enabled: false
Layout/IndentHeredoc:
Enabled: false
EmptyLinesAroundBlockBody:
Enabled: false
Style/FormatStringToken:
Enabled: false
Layout/EmptyLineAfterMagicComment:
Style/Encoding:
Enabled: false
MethodLength:
Max: 40
NumericLiterals:
MinDigits: 10
Metrics/BlockLength:
Max: 35
Metrics/CyclomaticComplexity:
Max: 10
Metrics/PerceivedComplexity:
Max: 11
Max: 10
Metrics/AbcSize:
Max: 33
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '{}'
'%i': ()
'%q': '{}'
'%Q': ()
'%r': '{}'
'%s': ()
'%w': '{}'
'%W': ()
'%x': ()
Layout/AlignHash:
Enabled: false
Naming/PredicateName:
Enabled: false
Style/ZeroLengthPredicate:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/BracesAroundHashParameters:
Enabled: false
Style/AndOr:
Enabled: false
Style/Not:
Enabled: false
Naming/FileName:
Enabled: false
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/NegatedIf:
Enabled: false
Style/UnlessElse:
Enabled: false
BlockDelimiters:
Enabled: false
Layout/SpaceAroundOperators:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/StderrPuts:
Enabled: false
Max: 30
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

22 changes: 9 additions & 13 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,16 @@

source 'https://rubygems.org'

gem 'rake', '~> 12.3.2'
gem 'rack', '~> 2.0.7'
gem 'inspec', '~> 3'
gem 'highline', '~> 2.0.2'
gem 'rubocop', '~> 0.68.1'
gem 'highline'
gem 'rack'
gem 'rake'
gem 'rubocop'

group :integration do
gem 'berkshelf'
gem 'kitchen-inspec'
gem 'test-kitchen'
gem 'kitchen-docker'
group :tools do
gem 'github_changelog_generator'
gem 'pry-coolline'
end

group :tools do
gem 'github_changelog_generator', '~> 1.14.3'
gem 'pry-coolline', '~> 0.2.5'
source 'https://packagecloud.io/cinc-project/stable' do
gem 'cinc-auditor-bin'
end