Skip to content

Commit

Permalink
Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lagoan committed Aug 10, 2020
1 parent ec3acba commit c76df93
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://help.github.com/articles/about-codeowners/
* @ConnorSheremeta @lagoan @mbarnett @murny @pgwillia
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Context

Please describe any relevant motivation and context for these changes.

Related to # (issue)

## What's New

Please summarize what's new or changed in this PR.

Remember to request a reviewer when you submit!
34 changes: 34 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the docker-compose stack
run: docker-compose -f docker-compose-ci.yml up -d
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.6
- name: Install dependencies
run: |
bundle config set without 'production development'
bundle install
- name: Lint with RuboCop
run: bundle exec rubocop --parallel
- name: Run tests
run: bundle exec rake spec
11 changes: 11 additions & 0 deletions docker-compose-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Lightweight docker-compose which only has the datastores, so you can still develop rails locally

# To use, run docker-compose up -d
version: '3.4'

services:

redis:
image: redis:alpine
ports:
- '6379:6379'

0 comments on commit c76df93

Please sign in to comment.