Skip to content

Grape bug

Grape bug #31

Workflow file for this run

name: Production
on:
push:
branches:
- master
jobs:
test:
env:
RACK_ENV: test
runs-on: ubuntu-latest
services:
mongo:
image: mongo:3.6
ports:
- 27017:27017
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rake
deploy:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
with:
ref: master
fetch-depth: 0
- name: Deploy to Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/paas-profiles.git master -f
- name: Seed database
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku run rake db:seed --app paas-profiles