Skip to content

Commit 92ce258

Browse files
committed
TravisCI -> GH Actions
1 parent adcfb26 commit 92ce258

File tree

4 files changed

+38
-35
lines changed

4 files changed

+38
-35
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TimeOverflow
22
[![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)
44
[![Maintainability](https://api.codeclimate.com/v1/badges/f82c6d98a2441c84f2ef/maintainability)](https://codeclimate.com/github/coopdevs/timeoverflow/maintainability)
55
[![Test Coverage](https://api.codeclimate.com/v1/badges/f82c6d98a2441c84f2ef/test_coverage)](https://codeclimate.com/github/coopdevs/timeoverflow/test_coverage)
66

config/database.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
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-
131
defaults: &defaults
142
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'] %>
166
collation: 'es_ES.UTF-8'
177
ctype: 'es_ES.UTF-8'
188
template: 'template0'

0 commit comments

Comments
 (0)