Skip to content

Commit 8c286ec

Browse files
authored
Merge pull request #38 from dev-sec/rndmh3ro-patch-1
add github action for testing
2 parents 4926159 + f7b7aad commit 8c286ec

File tree

6 files changed

+44
-17
lines changed

6 files changed

+44
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Style/Encoding:
66
Enabled: false
77
Documentation:
88
Enabled: false
9-
AlignParameters:
9+
ParameterAlignment:
1010
Enabled: true
1111
HashSyntax:
1212
Enabled: true

.travis.yml

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

Gemfile

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

3-
gem 'highline', '~> 2.0.2'
4-
gem 'inspec', '~> 3'
5-
gem 'rack', '~> 2.0.7'
6-
gem 'rake', '~> 12.3.2'
7-
gem 'rubocop', '~> 0.68.1'
5+
gem 'highline'
6+
gem 'rack'
7+
gem 'rake'
8+
gem 'rubocop'
89

910
group :tools do
10-
gem 'github_changelog_generator', '~> 1.14.3'
11-
gem 'pry-coolline', '~> 0.2.5'
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'
1217
end

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
#!/usr/bin/env rake
24
# encoding: utf-8
35

controls/postgres_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# encoding: utf-8
22

3+
# frozen_string_literal: true
4+
35
# Copyright 2016, Patrick Muench
46
# Copyright 2016-2019 DevSec Hardening Framework Team
57
#

0 commit comments

Comments
 (0)