Skip to content

Commit

Permalink
Merge pull request #37 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 authored Jan 26, 2021
2 parents 080602b + b44aac3 commit fb11d6c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 20 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
8 changes: 3 additions & 5 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ AllCops:
- vendor/**/*
Documentation:
Enabled: false
AlignParameters:
Layout/ParameterAlignment:
Enabled: true
HashSyntax:
Enabled: true
LineLength:
Enabled: false
EmptyLinesAroundBlockBody:
Enabled: false
Style/Encoding:
Enabled: false
MethodLength:
Max: 40
NumericLiterals:
Expand All @@ -24,7 +26,3 @@ Metrics/PerceivedComplexity:
Max: 10
Metrics/AbcSize:
Max: 30
Style/ZeroLengthPredicate:
Enabled: false
Style/AsciiComments:
Enabled: false
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

17 changes: 10 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

source 'https://rubygems.org'

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

group :tools do
gem 'github_changelog_generator', '~> 1.14.3'
gem 'pry-coolline', '~> 0.2.5'
gem 'github_changelog_generator'
gem 'pry-coolline'
end

source 'https://packagecloud.io/cinc-project/stable' do
gem 'cinc-auditor-bin'
end

0 comments on commit fb11d6c

Please sign in to comment.