Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [MORPHY] Switch to GitHub Actions #23328

Open
wants to merge 5 commits into
base: morphy
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
- '2.6'
test-suite:
- vmdb
- security
services:
postgres:
image: manageiq/postgresql:10
env:
POSTGRESQL_USER: root
POSTGRESQL_PASSWORD: smartvm
POSTGRESQL_DATABASE: vmdb_test
options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
env:
TEST_SUITE: ${{ matrix.test-suite }}
PGHOST: localhost
PGPASSWORD: smartvm
steps:
- uses: actions/checkout@v2
- name: Set up system
run: bin/before_install
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Prepare tests
run: bin/setup
- name: Run tests
run: bundle exec rake
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ xfer_*.xml
Thumbs.db
Procfile

# bin/
bin/*

# config/
config/apache
config/cable.yml
Expand Down
40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

60 changes: 31 additions & 29 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -256,37 +256,39 @@ group :web_socket, :manageiq_default do
gem "websocket-driver", "~>0.6.3", :require => false
end

group :appliance, :optional => true do
gem "manageiq-appliance_console", "~>6.0", :require => false
end

### Start of gems excluded from the appliances.
# The gems listed below do not need to be packaged until we find it necessary or useful.
# Only add gems here that we do not need on an appliance.
#
unless ENV["APPLIANCE"]
group :development do
gem "foreman"
gem "manageiq-style", "~>1.2.0", :require => false
gem "PoParser"
# ruby_parser is required for i18n string extraction
gem "ruby_parser", :require => false
gem "yard"
end

group :test do
gem "brakeman", "~>5.0", :require => false
gem "capybara", "~>2.5.0", :require => false
gem "coveralls", "~>0.8.23", :require => false
gem "db-query-matchers", "~>0.10.0"
gem "factory_bot", "~>5.1", :require => false

# TODO: faker is used for url generation in git repository factory and the lenovo
# provider, via a xclarity_client dependency
gem "faker", "~>1.8", :require => false
gem "timecop", "~>0.9", :require => false
gem "vcr", "~>5.0", :require => false
gem "webmock", "~>3.7", :require => false
end

group :development, :test do
gem "parallel_tests"
gem "rspec-rails", "~>4.0.1"
end
group :development do
gem "foreman"
gem "manageiq-style", "~>1.2.0", :require => false
gem "PoParser"
# ruby_parser is required for i18n string extraction
gem "ruby_parser", :require => false
gem "yard"
end

group :test do
gem "brakeman", "~>5.0", :require => false
gem "capybara", "~>2.5.0", :require => false
gem "coveralls", "~>0.8.23", :require => false
gem "db-query-matchers", "~>0.10.0"
gem "factory_bot", "~>5.1", :require => false

# TODO: faker is used for url generation in git repository factory and the lenovo
# provider, via a xclarity_client dependency
gem "faker", "~>1.8", :require => false
gem "timecop", "~>0.9", :require => false
gem "vcr", "~>5.0", :require => false
gem "webmock", "~>3.7", :require => false
end

group :development, :test do
gem "parallel_tests"
gem "rspec-rails", "~>4.0.1"
end
Loading
Loading