Skip to content

Commit 103e71d

Browse files
author
Sebastian Gumprich
committed
add github action for testing
Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
1 parent ae6af7c commit 103e71d

2 files changed

Lines changed: 35 additions & 7 deletions

File tree

.github/workflows/test.yml

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

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)