Skip to content

Commit 91f2886

Browse files
authored
Merge pull request #144 from dev-sec/github_action
add github action for tests, replace travis
2 parents ae6af7c + ce7cf2a commit 91f2886

4 files changed

Lines changed: 38 additions & 17 deletions

File tree

.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
@@ -4,7 +4,7 @@ AllCops:
44
- vendor/**/*
55
Documentation:
66
Enabled: false
7-
AlignParameters:
7+
ParameterAlignment:
88
Enabled: true
99
HashSyntax:
1010
Enabled: true

.travis.yml

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

Gemfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
source 'https://rubygems.org'
44

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

1110
group :tools do
12-
gem 'github_changelog_generator', '~> 1.14.3'
13-
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'
1417
end

0 commit comments

Comments
 (0)