Skip to content

Commit

Permalink
Convert to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl authored and chris1984 committed Nov 18, 2022
1 parent bcd7202 commit 7bf7769
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 31 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Ruby

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run Rubocop
run: bundle exec rake style

test:
runs-on: ubuntu-latest
needs: rubocop
strategy:
matrix:
ruby-version:
- '2.0'
- '2.1'
- '2.2'
- '2.3'
- '2.4'
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake test
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> VMware vSphere® provider for the Fog cloud services library
[![Gem Version][gemfury-image]][gemfury-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coverage-image]][coverage-url] [![Code Climate][climate-image]][climate-url]
[![Gem Version][gemfury-image]][gemfury-url] [![Build Status][gha-image]][gha-url] [![Test Coverage][coverage-image]][coverage-url] [![Code Climate][climate-image]][climate-url]

The VMware vSphere® provider allows you to use the abstractions of the Fog cloud services library to communicate with vSphere.

Expand Down Expand Up @@ -95,5 +95,5 @@ For more details see [CONTRIBUTING.md file](CONTRIBUTING.md)
[coverage-url]: https://codeclimate.com/github/fog/fog-vsphere/coverage
[gemfury-image]: https://badge.fury.io/rb/fog-vsphere.svg
[gemfury-url]: http://badge.fury.io/rb/fog-vsphere
[travis-image]: https://travis-ci.org/fog/fog-vsphere.svg?branch=master
[travis-url]: https://travis-ci.org/fog/fog-vsphere
[gha-image]: TODO
[gha-url]: TODO
5 changes: 0 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ require 'rubocop/rake_task'
desc 'Run Ruby style checks'
RuboCop::RakeTask.new(:style)

namespace :travis do
desc 'Run tests on Travis'
task ci: %w(style test)
end

mock = ENV['FOG_MOCK'] || 'true'
task :test do
sh("export FOG_MOCK=#{mock} && bundle exec shindont")
Expand Down

0 comments on commit 7bf7769

Please sign in to comment.