Skip to content

Commit

Permalink
Merge pull request #44 from dev-sec/github_action
Browse files Browse the repository at this point in the history
add github action for tests, replace travis
  • Loading branch information
schurzi committed Jan 26, 2021
2 parents a887018 + a379da5 commit f9b700b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 84 deletions.
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

0 comments on commit f9b700b

Please sign in to comment.