Skip to content

Commit

Permalink
Test out Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fengb authored and Benjamin Feng committed Feb 26, 2020
1 parent 2d8bb31 commit ed70394
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on: [push]

jobs:
test:
runs-on: ubuntu-latest

services:
db:
image: postgres:10.6
env:
POSTGRES_USER: postgres
POSTGRES_DB: test
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Build and test with Rake
env:
DATABASE_URL: postgres://postgres:@localhost:5432/test
DATABASE_TEST_URL: postgres://postgres:@localhost:5432/test
run: |
sudo apt-get -yqq install libpq-dev
gem install bundler
bin/setup
bundle exec rspec

0 comments on commit ed70394

Please sign in to comment.