Skip to content

--- (#29)

--- (#29) #76

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11-alpine
ports: ["5432:5432"]
env:
POSTGRES_PASSWORD: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
- name: DB Setup
run: bundle exec bin/rails db:setup
env:
RAILS_ENV: test
- name: RuboCop Linter Action
uses: andrewmcodes/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RAILS_ENV: test
- name: Run RSpec and Code Coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 7b9393ecf6ecb3eaba0a724272a9c613da28399b6134054d72ac6ca817c0e3fc
RAILS_ENV: test
with:
coverageCommand: bundle exec rspec