Skip to content

Commit

Permalink
Update app.json (#72)
Browse files Browse the repository at this point in the history
* Update app.json

* convert to github actions

* remove circleci
  • Loading branch information
Michael Hale authored Dec 6, 2022
1 parent 2cc6013 commit a561c13
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 99 deletions.
97 changes: 0 additions & 97 deletions .circleci/config.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/webhooks-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Webhooks Demo
on:
push:
jobs:
test:
runs-on: ubuntu-latest
env:
PGHOST: localhost
RAILS_ENV: test
services:
postgres:
image: postgres:11
env:
POSTGRES_USER: webhooks-demo
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: webhooks-consumer-demo-test
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
name: Setup env & run tests
steps:

- name: Checkout repo
uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Setup
run: bin/setup

- name: Run Rspec test
run: bundle exec rspec --format doc

2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Heroku Webhooks Demo",
"logo": "https://raw.githubusercontent.com/heroku/webhooks-demo/master/app/assets/images/heroku_webhooks.png",
"repository": "https://github.com/heroku/webhooks-demo",
"addons": ["heroku-postgresql:hobby-dev"],
"addons": ["heroku-postgresql:mini"],
"env": {
"WEBHOOK_SECRET": {
"description": "secret used to check webhook signing",
Expand Down
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ default: &default
# For details on connection pooling, see Rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
<% if ENV["CIRCLECI"] %>
<% if ENV["CI"] %>
username: webhooks-demo
host: localhost
<% end %>
Expand Down

0 comments on commit a561c13

Please sign in to comment.