Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/review-app-close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Destroy Review App on Close
'on':
pull_request:
types:
- closed
jobs:
destroy-review-app:
runs-on: ubuntu-latest
steps:
- uses: fastruby/manage-heroku-review-app@v1
with:
action: destroy
env:
HEROKU_API_TOKEN: '${{ secrets.HEROKU_API_TOKEN }}'
HEROKU_PIPELINE_ID: '${{ secrets.HEROKU_PIPELINE_ID }}'
38 changes: 38 additions & 0 deletions .github/workflows/review-app-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Heroku Review App on label
'on':
pull_request:
types:
- labeled
jobs:
create-review-app:
if: '${{ github.event.label.name == ''create-review-app'' }}'
runs-on: ubuntu-latest
steps:
- uses: fastruby/create-heroku-review-app@main
with:
action: create
env:
HEROKU_API_TOKEN: '${{ secrets.HEROKU_API_TOKEN }}'
HEROKU_PIPELINE_ID: '${{ secrets.HEROKU_PIPELINE_ID }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- uses: fastruby/pr-unlabeler@v1
with:
label-to-remove: create-review-app
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
destroy-review-app:
if: '${{ github.event.label.name == ''destroy-review-app'' }}'
runs-on: ubuntu-latest
steps:
- uses: fastruby/create-heroku-review-app@main
with:
action: destroy
env:
HEROKU_API_TOKEN: '${{ secrets.HEROKU_API_TOKEN }}'
HEROKU_PIPELINE_ID: '${{ secrets.HEROKU_PIPELINE_ID }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- uses: fastruby/pr-unlabeler@v1
with:
label-to-remove: destroy-review-app
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.5.8
117 changes: 62 additions & 55 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.8.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't update all this dependencies if they are not needed for the review apps, maybe they can be in another PR

public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
ansi (1.5.0)
arel (8.0.0)
builder (3.2.4)
Expand All @@ -54,7 +54,7 @@ GEM
coffee-script-source (1.12.2)
colorize (0.8.1)
commonjs (0.2.7)
concurrent-ruby (1.1.9)
concurrent-ruby (1.1.10)
coveralls (0.7.2)
multi_json (~> 1.3)
rest-client (= 1.6.7)
Expand All @@ -64,105 +64,111 @@ GEM
crack (0.4.5)
rexml
crass (1.0.6)
diff-lcs (1.4.4)
diff-lcs (1.5.0)
docile (1.4.0)
dotenv (2.7.6)
dotenv-rails (2.7.6)
dotenv (= 2.7.6)
dotenv (2.8.1)
dotenv-rails (2.8.1)
dotenv (= 2.8.1)
railties (>= 3.2)
email_spec (2.2.0)
email_spec (2.2.1)
htmlentities (~> 4.3.3)
launchy (~> 2.1)
mail (~> 2.7)
erubi (1.10.0)
erubi (1.11.0)
execjs (2.8.1)
factory_bot (6.2.0)
factory_bot (6.2.1)
activesupport (>= 5.0.0)
factory_bot_rails (6.2.0)
factory_bot (~> 6.2.0)
railties (>= 5.0.0)
faraday (1.8.0)
faraday (1.10.2)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
multipart-post (>= 1.2, < 3)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.2.0)
faraday (~> 1.0)
ffi (1.15.4)
ffi (1.15.5)
gli (2.21.0)
globalid (0.5.2)
globalid (1.0.0)
activesupport (>= 5.0)
hashdiff (1.0.1)
hashie (5.0.0)
holidays (8.4.1)
holidays (8.6.0)
htmlentities (4.3.4)
i18n (1.8.10)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jbuilder (2.11.2)
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jquery-rails (4.4.0)
jquery-rails (4.5.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.6)
json (2.6.2)
launchy (2.5.0)
addressable (~> 2.7)
less (2.6.0)
commonjs (~> 0.2.7)
less-rails (2.8.0)
actionpack (>= 4.0)
less-rails (4.0.0)
actionpack (>= 4)
less (~> 2.6.0)
sprockets (> 2, < 4)
tilt
loofah (2.18.0)
sprockets (>= 2)
loofah (2.19.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
method_source (1.0.0)
mime-types (3.3.1)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2021.0901)
mime-types-data (3.2022.0105)
mini_mime (1.1.2)
mini_portile2 (2.6.1)
minitest (5.14.4)
minitest (5.15.0)
multi_json (1.15.0)
multipart-post (2.1.1)
next_rails (1.0.4)
multipart-post (2.2.3)
next_rails (1.2.1)
colorize (>= 0.8.1)
nio4r (2.5.8)
noko (1.7.0)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
pg (1.2.3)
nokogiri (1.12.5-x86_64-linux)
racc (~> 1.4)
pg (1.4.4)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
public_suffix (4.0.6)
public_suffix (4.0.7)
racc (1.6.0)
rack (2.2.3.1)
rack (2.2.4)
rack-mini-profiler (3.0.0)
rack (>= 1.2.0)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rack-test (2.0.2)
rack (>= 1.3)
rails (5.1.7)
actioncable (= 5.1.7)
actionmailer (= 5.1.7)
Expand Down Expand Up @@ -199,14 +205,14 @@ GEM
rest-client (1.6.7)
mime-types (>= 1.16)
rexml (3.2.5)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (~> 3.11.0)
rspec-rails (4.1.2)
actionpack (>= 4.2)
activesupport (>= 4.2)
Expand All @@ -215,7 +221,7 @@ GEM
rspec-expectations (~> 3.10)
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.10.2)
rspec-support (3.11.1)
ruby2_keywords (0.0.5)
sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1)
Expand All @@ -236,15 +242,15 @@ GEM
simplecov
terminal-table
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.3)
simplecov_json_formatter (0.1.4)
slack-ruby-client (1.0.0)
faraday (>= 1.0)
faraday_middleware
gli
hashie
websocket-driver
spring (3.0.0)
sprockets (3.7.2)
spring (3.1.1)
sprockets (4.1.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.2)
Expand All @@ -258,23 +264,23 @@ GEM
unicode-display_width (>= 1.1.1, < 3)
thor (0.18.1)
thread_safe (0.3.6)
tilt (2.0.10)
tilt (2.0.11)
tins (0.13.2)
turbolinks (5.2.1)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
twitter-bootstrap-rails (4.0.0)
actionpack (~> 5.0, >= 5.0.1)
twitter-bootstrap-rails (5.0.0)
actionpack (>= 5.0, < 8.0)
execjs (~> 2.7)
less-rails (~> 2.8, >= 2.8.0)
railties (~> 5.0, >= 5.0.1)
less-rails (>= 3.0, < 5.0)
railties (>= 5.0, < 8.0)
tzinfo (1.2.10)
thread_safe (~> 0.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.1.0)
unicode-display_width (2.3.0)
vcr (6.0.0)
webmock (3.14.0)
webmock (3.18.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
Expand All @@ -283,7 +289,8 @@ GEM
websocket-extensions (0.1.5)

PLATFORMS
ruby
-darwin-21
x86_64-linux

DEPENDENCIES
byebug
Expand Down Expand Up @@ -322,4 +329,4 @@ RUBY VERSION
ruby 2.5.8p224

BUNDLED WITH
2.2.29
2.3.24
Loading