File tree Expand file tree Collapse file tree 4 files changed +38
-35
lines changed Expand file tree Collapse file tree 4 files changed +38
-35
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-18.04
8
+ services :
9
+ postgres :
10
+ image : postgres:9.4
11
+ ports : ["5432:5432"]
12
+ options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
13
+ env :
14
+ DATABASE_USER : postgres
15
+ DATABASE_PASSWORD : postgres
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+
19
+ - name : Set up Ruby
20
+ uses : ruby/setup-ruby@v1
21
+ with :
22
+ bundler-cache : true
23
+
24
+ - name : Install postgres client
25
+ run : sudo apt-get install libpq-dev
26
+
27
+ - name : Set up database
28
+ env :
29
+ RAILS_ENV : " test"
30
+ run : |
31
+ bundle exec rails db:setup
32
+
33
+ - name : Run tests
34
+ run : bundle exec rspec
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# TimeOverflow
2
2
[ ![ View performance data on Skylight] ( https://badges.skylight.io/problem/grDTNuzZRnyu.svg )] ( https://oss.skylight.io/app/applications/grDTNuzZRnyu )
3
- [ ![ Build Status] ( https://travis-ci .com/coopdevs/timeoverflow. svg?branch=develop )] ( https://travis-ci .com/coopdevs/timeoverflow )
3
+ [ ![ Build Status] ( https://github .com/coopdevs/timeoverflow/actions/workflows/ci.yml/badge. svg?branch=develop )] ( https://github .com/coopdevs/timeoverflow/actions )
4
4
[ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/f82c6d98a2441c84f2ef/maintainability )] ( https://codeclimate.com/github/coopdevs/timeoverflow/maintainability )
5
5
[ ![ Test Coverage] ( https://api.codeclimate.com/v1/badges/f82c6d98a2441c84f2ef/test_coverage )] ( https://codeclimate.com/github/coopdevs/timeoverflow/test_coverage )
6
6
Original file line number Diff line number Diff line change 1
- # If you want to change this file, please keep the changes in your working
2
- # copy by using
3
- #
4
- # git update-index --skip-worktree config/database.yml
5
- #
6
- # or just use DATABASE_URL, in which case Rails will happily skip the whole
7
- # file.
8
- #
9
- # See https://github.com/coopdevs/timeoverflow/wiki/Keeping-your-local-files
10
- # for more information
11
- #
12
-
13
1
defaults : &defaults
14
2
adapter : postgresql
15
- username : <%= ENV['DATABASE_USER'] %> # default is null
3
+ username : <%= ENV['DATABASE_USER'] %>
4
+ password : <%= ENV['DATABASE_PASSWORD'] %>
5
+ host : <%= ENV['DATABASE_HOST'] %>
16
6
collation : ' es_ES.UTF-8'
17
7
ctype : ' es_ES.UTF-8'
18
8
template : ' template0'
You can’t perform that action at this time.
0 commit comments