Skip to content

Commit

Permalink
Merge pull request #103 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 8eae786 + cfd3f38 commit abf50a2
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 32 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
20 changes: 5 additions & 15 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
---
AllCops:
Exclude:
- vendor/**/*
Documentation:
Enabled: false
Layout/ParameterAlignment:
Enabled: true
Lint/AmbiguousRegexpLiteral:
Enabled: false
HashSyntax:
Enabled: true
LineLength:
Enabled: false
EmptyLinesAroundBlockBody:
Enabled: false
Style/Encoding:
Enabled: false
MethodLength:
Max: 40
NumericLiterals:
Expand All @@ -23,16 +26,3 @@ Metrics/PerceivedComplexity:
Max: 10
Metrics/AbcSize:
Max: 30
# temporary deactivated
Style/PercentLiteralDelimiters:
Enabled: false
Lint/AmbiguousBlockAssociation:
Enabled: false
Style/Encoding:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/SafeNavigation:
Enabled: false
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

21 changes: 12 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
# frozen_string_literal: true

gem 'github_changelog_generator', '~> 1.12.0', source: 'https://rubygems.org/'
gem 'rake', source: 'https://rubygems.org/'
gem 'rubocop', source: 'https://rubygems.org/'
gem 'unf_ext', source: 'https://rubygems.org/'
source 'https://rubygems.org'

gem 'highline'
gem 'rack'
gem 'rake'
gem 'rubocop'

group :tools do
gem 'github_changelog_generator'
gem 'pry-coolline'
end

source 'https://packagecloud.io/cinc-project/stable' do
gem 'chef-config'
gem 'chef-utils'
gem 'cinc-auditor-bin'
gem 'inspec'
gem 'inspec-core'
end

0 comments on commit abf50a2

Please sign in to comment.