Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Mar 31, 2022
1 parent a7a12fc commit 5f5128e
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 27 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
- '2.5'
- '2.6'
- '2.7'
- '3.0'
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
- name: Report code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' }}
continue-on-error: true
uses: paambaati/codeclimate-action@v3.0.0
4 changes: 2 additions & 2 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--color
--warnings
--require spec_helper
--color
--order random
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# LinuxAdmin

[![Gem Version](https://badge.fury.io/rb/linux_admin.svg)](http://badge.fury.io/rb/linux_admin)
[![Build Status](https://travis-ci.com/ManageIQ/linux_admin.svg)](https://travis-ci.com/ManageIQ/linux_admin)
[![Code Climate](http://img.shields.io/codeclimate/github/ManageIQ/linux_admin.svg)](https://codeclimate.com/github/ManageIQ/linux_admin)
[![Coverage Status](http://img.shields.io/coveralls/ManageIQ/linux_admin.svg)](https://coveralls.io/r/ManageIQ/linux_admin)
[![Dependency Status](https://gemnasium.com/ManageIQ/linux_admin.svg)](https://gemnasium.com/ManageIQ/linux_admin)

[![CI](https://github.com/ManageIQ/linux_admin/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/linux_admin/actions/workflows/ci.yaml)
[![Code Climate](https://codeclimate.com/github/ManageIQ/linux_admin.svg)](https://codeclimate.com/github/ManageIQ/linux_admin)
[![Test Coverage](https://codeclimate.com/github/ManageIQ/linux_admin/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/linux_admin/coverage)

LinuxAdmin is a module to simplify management of linux systems.
It should be a single place to manage various system level configurations,
Expand Down
2 changes: 2 additions & 0 deletions lib/linux_admin/service/systemd_service.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "time"

module LinuxAdmin
class SystemdService < Service
def running?
Expand Down
2 changes: 1 addition & 1 deletion linux_admin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ registration, updates, etc.

spec.required_ruby_version = ">= 2.0.0"

spec.add_development_dependency "coveralls"
spec.add_development_dependency "manageiq-style"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.0"
Expand All @@ -40,4 +39,5 @@ registration, updates, etc.
spec.add_dependency "net-ssh", "~> 4.2.0"
spec.add_dependency "nokogiri", ">= 1.8.5", "!=1.10.0", "!=1.10.1", "!=1.10.2", "<2"
spec.add_dependency "openscap"
spec.add_development_dependency "simplecov", ">= 0.21.2"
end
11 changes: 5 additions & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if ENV['CI']
require 'simplecov'
SimpleCov.start
end

# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause this
Expand Down Expand Up @@ -80,12 +85,6 @@
end
end

begin
require 'coveralls'
Coveralls.wear!
rescue LoadError
end

require 'linux_admin'

def etc_issue_contains(contents)
Expand Down

0 comments on commit 5f5128e

Please sign in to comment.