Skip to content

Commit 985f087

Browse files
authored
Merge pull request #10 from dev-sec/github_action
add github action for tests, replace travis
2 parents 36344df + 0ecc37c commit 985f087

File tree

4 files changed

+41
-17
lines changed

4 files changed

+41
-17
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '0 6 * * *'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
ruby-version: ['2.6', '2.7', '3.0']
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby-version }}
25+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26+
- name: Run tests
27+
run: bundle exec rake

.rubocop.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
AllCops:
33
Exclude:
44
- vendor/**/*
5-
- "*/puppet/Puppetfile"
6-
- "*/puppet/.tmp/**/*"
7-
TargetRubyVersion: 1.9
85
Documentation:
96
Enabled: false
10-
AlignParameters:
7+
Layout/ParameterAlignment:
118
Enabled: true
129
HashSyntax:
1310
Enabled: true
1411
LineLength:
1512
Enabled: false
1613
EmptyLinesAroundBlockBody:
1714
Enabled: false
15+
Style/Encoding:
16+
Enabled: false
1817
MethodLength:
1918
Max: 40
2019
NumericLiterals:

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Gemfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

3-
gem 'highline', '~> 1.6.0'
4-
gem 'inspec', '~> 1'
5-
gem 'rack', '1.6.4'
5+
gem 'highline'
6+
gem 'rack'
67
gem 'rake'
7-
gem 'rubocop', '~> 0.46.0'
8+
gem 'rubocop'
89

910
group :tools do
10-
gem 'github_changelog_generator', '~> 1.12.0'
11+
gem 'github_changelog_generator'
12+
gem 'pry-coolline'
13+
end
14+
15+
source 'https://packagecloud.io/cinc-project/stable' do
16+
gem 'cinc-auditor-bin'
1117
end

0 commit comments

Comments
 (0)