Skip to content

Commit

Permalink
add workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Nov 9, 2019
1 parent 2234b28 commit 19badcd
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Ruby

on: [push]

jobs:
build:

runs-on: ubuntu-latest

services:
postgres:
image: postgres:11
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v1
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Build and test with Rake
run: |
sudo apt-get install libpq-dev redis
gem install bundler
bundle install --jobs 4 --retry 3
mv spec/dummy/config/database.yml spec/dummy/config/database.yml.orig
bundle exec rake db:create
bundle exec rake db:schema:load
yarn install
bundle exec rake
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/dummy_test
RAILS_ENV: test
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: ruby
cache: bundler
rvm:
- 2.4.6
- 2.5.5
- 2.4.9
- 2.5.7
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ gem 'enju_leaf', github: 'next-l/enju_leaf'
gem 'enju_library', github: 'next-l/enju_library'
gem 'enju_biblio', github: 'next-l/enju_biblio'
gem 'sassc-rails'
gem 'sprockets', '~> 3.7'
group :test do
gem 'rails-controller-testing'
gem 'rspec_junit_formatter'
Expand Down
2 changes: 1 addition & 1 deletion enju_subject.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ Gem::Specification.new do |s|
s.add_development_dependency "factory_bot_rails"
s.add_development_dependency "sunspot_solr", "~> 2.5"
s.add_development_dependency "coveralls"
s.add_development_dependency "annotate"
s.add_development_dependency "annotate", '~> 2.7'
end

0 comments on commit 19badcd

Please sign in to comment.