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 Feb 15, 2022
1 parent a7a12fc commit dfc9caa
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
- '2.5'
- '2.6'
- '2.7'
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 == '2.7' }}
continue-on-error: true
uses: paambaati/codeclimate-action@v3.0.0
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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)
[![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](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)
Expand Down
1 change: 1 addition & 0 deletions linux_admin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,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

0 comments on commit dfc9caa

Please sign in to comment.