Skip to content

Commit

Permalink
replace travis with github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
zfletch committed Jul 10, 2020
1 parent 8fcec65 commit c09ee1a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 11 deletions.
File renamed without changes.
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Run tests

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6']
services:
db:
image: postgres:12
env:
POSTGRES_PASSWORD: postgres
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
name: Ruby ${{ matrix.ruby }} test
env:
DATABASE_URL: postgres://postgres:postgres@127.0.0.1
steps:
- uses: actions/checkout@v2

- uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: Install bundler
run: gem install bundler

- name: Install dependencies
run: bundle install

- name: Set up database
run: bundle exec rake db:{create,migrate}

- name: Run tests
run: bundle exec rspec

- name: Lint code
run: bundle exec rubocop

- name: Audit code
run: bundle exec bundler-audit check --update
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

ruby '2.6.0'
ruby '~> 2.6.0'

gem 'bootsnap', '>= 1.4.2', require: false
gem 'iso-639'
Expand Down

0 comments on commit c09ee1a

Please sign in to comment.