Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/install yarn #175

Open
wants to merge 266 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
eeee852
Add eslint (#7)
b0gok Feb 7, 2020
82bd76c
add subscription type to retrospective schema (#10)
glebson1988 Mar 13, 2020
50c1ea4
emojies
IvanShamatov Apr 2, 2020
1e8bb38
yarn
IvanShamatov Apr 3, 2020
dd40445
yarn
IvanShamatov Apr 3, 2020
bc61639
Fix port conflict, improve code of ReadyButton (#11)
b0gok Apr 12, 2020
b4bcfdf
Add alfred omniauth provider (#12)
latefebruary Apr 16, 2020
8998e3f
Find user by email to force use alfred logins (#13)
latefebruary Apr 24, 2020
0971c0e
Fix avatar url in from_omniauth
latefebruary Apr 24, 2020
74a56b5
Remove Github OmniAuth (#14)
latefebruary Apr 24, 2020
fd5a325
Remove login with email/password (#15)
latefebruary Apr 24, 2020
9ac4a18
Add ready-statuses synchronization (#16)
valkovik15 May 21, 2020
6d65ab1
Fix sockets https bug (#18)
valkovik15 May 22, 2020
de406b5
Add card live update (#19)
valkovik15 May 29, 2020
6c628b9
Fix/cards update (#20)
valkovik15 Jun 5, 2020
9b23f65
Add comments (#27)
valkovik15 Jun 15, 2020
5a72d2f
Comments' edit and delete (#28)
valkovik15 Jun 15, 2020
548aa9a
Remove 500 error on visiting desk link, custom error handling (#35)
valkovik15 Jun 16, 2020
f389dc1
Move edit and delete to dropdown menu for card
Jun 8, 2020
39e8dea
Merge pull request #29 from cybergizer-hq/Move_edit_and_delete_for_cards
MargaretOm Jun 18, 2020
840caa2
Fix 404 page styling (#40)
valkovik15 Jun 22, 2020
58972d2
Add buttons to add and edit card and action item
Jun 22, 2020
d137817
Merge pull request #32 from cybergizer-hq/Add_button_for_create_and_e…
MargaretOm Jun 22, 2020
d336489
Fix comments bugs and issues (#41)
valkovik15 Jun 23, 2020
ac29b31
Add privacy, split Autocomplete component into MembershipList and Inv…
valkovik15 Jun 25, 2020
c67e6db
Add tests for action item
Jun 23, 2020
7dc4fbc
Create migration, add column appointed_id to action item
Jun 23, 2020
ed102f5
Add functionality 'assigned to'
Jun 23, 2020
c60cc77
Rename column in table, move code to serializer
Jun 24, 2020
4103693
Move code to serializer
Jun 25, 2020
4457b31
Merge pull request #43 from cybergizer-hq/Add_assigned_to_action_item
MargaretOm Jun 25, 2020
fbbafc4
Add popup of users to boards(index) page (#45)
glebson1988 Jul 3, 2020
6036531
fix users-popup.js and n+1 query issue (#46)
glebson1988 Jul 3, 2020
1cbe16a
fix users popup position (#48)
glebson1988 Jul 5, 2020
56785f9
Improvement/add ci to project (#49)
glebson1988 Jul 7, 2020
5c3b6b9
Migrate from ActionCable to GraphQL (#30)
valkovik15 Jul 20, 2020
1777f8a
Finish migration from REST to GraphQL, fix card on-hover bug (#51)
valkovik15 Jul 20, 2020
25bdcc2
Change allowed_to calls to authorize! (#52)
valkovik15 Jul 20, 2020
1be1aa4
webpack fix
IvanShamatov Jul 20, 2020
41b8be5
Fix/graphql deploy (#53)
valkovik15 Jul 21, 2020
c8f026c
env revert
IvanShamatov Jul 21, 2020
2816359
Add ability to edit action item assignee, simplify ActionItem API (#54)
valkovik15 Jul 21, 2020
ecb780c
Fix empty column after rename bug (#55)
valkovik15 Jul 21, 2020
0d7c5a1
Add multi-line support for all text fields (#56)
valkovik15 Jul 22, 2020
0703b8e
Add likes to comments, simplify policies structure (#57)
valkovik15 Jul 22, 2020
6bbb4db
Board page redesign (#58)
valkovik15 Jul 24, 2020
7af2b3d
Add extensions to images (#59)
valkovik15 Jul 27, 2020
6dc8c08
SCSS fix for z-index issue (#60)
valkovik15 Jul 27, 2020
ff6b4ca
adding ability to sign in as developer (#61)
glebson1988 Aug 6, 2020
0564952
Create aws.yml
anatoliliotych Sep 30, 2020
6380770
set up force_ssl (#65)
BubuntuClu Oct 19, 2020
1d2b778
board page redesign (#66)
BubuntuClu Oct 29, 2020
ea004ab
rework header (#67)
BubuntuClu Oct 29, 2020
d1a35d1
add show/hide block (#68)
BubuntuClu Oct 30, 2020
f36d230
fix-oauth-user-assignment (#69)
nikolaiprivalov Nov 9, 2020
268dab5
Add conditions for autocomplete (#71)
zakharoff Nov 23, 2020
2ac6488
Adding saving privacy settings when continuing board (#77)
ekifel Nov 23, 2020
7caa9e5
Adding name/nickname to users (#79)
ekifel Nov 25, 2020
3be859e
76 card entering enhancement (#80)
Sooonne Nov 26, 2020
298dd27
hotfix/return name into schema
IvanShamatov Nov 27, 2020
c5de5d9
82 make a pop up to read/write comments (#83)
Sooonne Nov 27, 2020
71aec0f
revert hotfix
IvanShamatov Nov 27, 2020
53fdb54
add the same functionality for hotkeys for Action Items (as in cards…
Sooonne Nov 27, 2020
5582ffa
Adding menu with boards/actions links (#97)
ekifel Nov 28, 2020
7563ad7
81 order cards by desc (#100)
zakharoff Nov 30, 2020
fd2bd52
make user component of card & user avatar of initials (#99)
Sooonne Dec 1, 2020
8696a3d
adding board title to link (#104)
zakharoff Dec 1, 2020
6ae4c63
Adding user's profile page (#107)
ekifel Dec 2, 2020
a648dd4
96 add roles policies (#108)
zakharoff Dec 2, 2020
2e176c0
add-tooltip-to-user-avatar (#109)
Sooonne Dec 2, 2020
22dd890
Fix autofocus bugs (#105)
Sooonne Dec 3, 2020
a69eb2d
Add forgotten styles (#111)
Sooonne Dec 3, 2020
d6c4378
delete default avatar (#114)
ekifel Dec 4, 2020
591ed7f
Adding mailer job for send new action items to users (#116)
ekifel Dec 7, 2020
879fc0e
hotfix/Assignee name when there are no assignment (#119)
IvanShamatov Dec 7, 2020
a3deb2a
117 only boards (that can be continued) on the pages of "my boards" a…
zakharoff Dec 8, 2020
0092f29
changing null:false to true for AvatarType (#127)
ekifel Dec 9, 2020
13d28cd
⬆️ Update dev dependencies (#140)
b0gok Dec 9, 2020
b2c5107
Bump webmock from 3.7.6 to 3.10.0 (#128)
dependabot-preview[bot] Dec 10, 2020
9220d5f
fix: upgrade graphql-ruby-client from 1.7.11 to 1.8.1 (#148)
snyk-bot Dec 10, 2020
8bf3b4b
[Security] Bump puma from 3.12.1 to 3.12.6 (#149)
dependabot-preview[bot] Dec 10, 2020
86913da
Bump selenium-webdriver from 3.142.6 to 3.142.7 (#129)
dependabot-preview[bot] Dec 10, 2020
efb0c83
fix: upgrade @rails/actioncable from 6.0.3-2 to 6.0.3 (#145)
snyk-bot Dec 10, 2020
cd05109
fix: upgrade react-bulma-components from 3.1.3 to 3.4.0 (#147)
snyk-bot Dec 10, 2020
fd2e1d8
fix: upgrade actioncable from 5.2.4-3 to 5.2.4 (#146)
snyk-bot Dec 10, 2020
9d3e9ca
fix: upgrade emoji-picker-react from 3.2.1 to 3.2.4 (#144)
snyk-bot Dec 10, 2020
1909993
[Security] Bump websocket-extensions from 0.1.4 to 0.1.5 (#139)
dependabot-preview[bot] Dec 10, 2020
c57b62e
[Security] Bump rack from 2.0.7 to 2.2.3 (#138)
dependabot-preview[bot] Dec 10, 2020
8b39766
[Security] Bump loofah from 2.3.0 to 2.8.0 (#135)
dependabot-preview[bot] Dec 10, 2020
e15a208
[Security] Bump omniauth from 1.9.0 to 1.9.1 (#137)
dependabot-preview[bot] Dec 10, 2020
b86278d
[Security] Bump json from 2.2.0 to 2.3.1 (#134)
dependabot-preview[bot] Dec 10, 2020
72db5c6
[Security] Bump excon from 0.67.0 to 0.78.1 (#132)
dependabot-preview[bot] Dec 10, 2020
725d96e
[Security] Bump nokogiri from 1.10.4 to 1.10.10 (#136)
dependabot-preview[bot] Dec 10, 2020
8cae1b7
Bump faker from `4e91448` to `ec06d21` (#131)
dependabot-preview[bot] Dec 10, 2020
81d1ca8
Bump rails from 6.0.0 to 6.0.3.4 (#130)
dependabot-preview[bot] Dec 10, 2020
fe4d3dc
Adding history page for boards (#143)
ekifel Dec 10, 2020
de16509
firstly add card to frontend (#115)
Sooonne Dec 11, 2020
dc41882
Hotfix/avatar thumb url (#157)
IvanShamatov Dec 11, 2020
483bb9f
Bump sentry-raven from 2.11.3 to 3.1.1 (#162)
dependabot-preview[bot] Dec 11, 2020
b8c811b
Bump redis from 4.1.3 to 4.2.5 (#161)
dependabot-preview[bot] Dec 11, 2020
16e10cb
Bump devise from 4.7.1 to 4.7.3 (#160)
dependabot-preview[bot] Dec 11, 2020
3fa0891
Bump pry-byebug from 3.7.0 to 3.8.0 (#158)
dependabot-preview[bot] Dec 11, 2020
d4bae79
Bump fog-aws from 3.5.2 to 3.7.0 (#159)
dependabot-preview[bot] Dec 11, 2020
d90a68e
Hotfix/avatar thumb url (#163)
IvanShamatov Dec 11, 2020
4d83c59
steps to bring project alive (#165)
nuringa Dec 11, 2020
cc3fa7e
fix: upgrade multiple dependencies with Snyk (#154)
snyk-bot Dec 12, 2020
1d0ea9a
adding board title borrowed from previous board (#168)
ekifel Dec 12, 2020
cbf5f8d
fix: upgrade graphql from 15.3.0 to 15.4.0 (#153)
snyk-bot Dec 12, 2020
05b128e
fix: upgrade @babel/preset-react from 7.10.4 to 7.12.5 (#152)
snyk-bot Dec 12, 2020
5eaa400
fix: upgrade graphql-tag from 2.10.4 to 2.11.0 (#156)
snyk-bot Dec 12, 2020
44560fe
lock
IvanShamatov Dec 12, 2020
4e03f7c
ci/cache
IvanShamatov Dec 12, 2020
8427208
Bump puma from 3.12.6 to 5.1.1 (#176)
dependabot-preview[bot] Dec 14, 2020
18a7a13
Bump coffee-rails from 4.2.2 to 5.0.0 (#174)
dependabot-preview[bot] Dec 14, 2020
f17143d
Bump rubocop from 0.74.0 to 1.6.1 (#175)
dependabot-preview[bot] Dec 14, 2020
83a1a09
Add omniauth providers (#178)
nikolaiprivalov Dec 14, 2020
0481d9f
remove alfred mapping (#179)
nikolaiprivalov Dec 15, 2020
b259db5
Bump web-console from 4.0.1 to 4.1.0 (#173)
dependabot-preview[bot] Dec 15, 2020
9a0a38b
Bump react-rails from 2.6.0 to 2.6.1 (#177)
dependabot-preview[bot] Dec 15, 2020
73d6445
Bump active_model_serializers from 0.10.10 to 0.10.12 (#182)
dependabot-preview[bot] Dec 15, 2020
a6aa0f8
Bump database_cleaner from 1.7.0 to 1.8.5 (#185)
dependabot-preview[bot] Dec 15, 2020
3fa3e19
Bump dotenv-rails from 2.7.5 to 2.7.6 (#186)
dependabot-preview[bot] Dec 15, 2020
d80ee7b
Bump listen from 3.1.5 to 3.3.3 (#184)
dependabot-preview[bot] Dec 15, 2020
78f08f3
change current user structure (#167)
Sooonne Dec 15, 2020
ff8ae3f
Creator can delete cards (#180)
nuringa Dec 15, 2020
60abba3
add links in cards (#187)
Sooonne Dec 15, 2020
77a04cb
Bump capybara from 3.29.0 to 3.34.0 (#183)
dependabot-preview[bot] Dec 15, 2020
4c73cb3
adding date on boardcard (#195)
ekifel Dec 16, 2020
8a7751b
hotfix for shortify links (#196)
Sooonne Dec 16, 2020
4867800
add opportunity to delete any cards if you are the cretor of board (#…
Sooonne Dec 16, 2020
7c4b2c9
auth links rendering dependent on ENV variables present (#198)
nuringa Dec 16, 2020
d027b63
Bump aasm from 5.0.6 to 5.1.1 (#191)
dependabot-preview[bot] Dec 16, 2020
b70001d
Bump action_policy from 0.3.2 to 0.5.4 (#190)
dependabot-preview[bot] Dec 16, 2020
c849ebc
Bump vcr from 5.0.0 to 6.0.0 (#189)
dependabot-preview[bot] Dec 16, 2020
5b4841d
Bump bullet from 6.1.0 to 6.1.2 (#188)
dependabot-preview[bot] Dec 16, 2020
74cbafd
dont close actions items while adding & add them to the top (#200)
Sooonne Dec 17, 2020
41ec045
add focus and hotkeys (#199)
Sooonne Dec 17, 2020
c8a079f
refactoring components structure (#208)
Sooonne Dec 18, 2020
33b4a46
fixed view options when clearing input (#214)
zakharoff Dec 19, 2020
43b7441
Bump dry-monads from 1.3.1 to 1.3.5 (#212)
dependabot-preview[bot] Dec 19, 2020
d10bd56
Bump factory_bot_rails from 5.1.1 to 6.1.0 (#210)
dependabot-preview[bot] Dec 19, 2020
10b8269
Bump carrierwave from 2.0.2 to 2.1.0 (#201)
dependabot-preview[bot] Dec 19, 2020
8991ef6
Bump rspec-rails from 4.0.0.beta2 to 4.0.1 (#209)
dependabot-preview[bot] Dec 19, 2020
385d536
Bump graphql from 1.9.18 to 1.11.6 (#205)
dependabot-preview[bot] Dec 19, 2020
cc843fc
Bump webpacker from 4.0.7 to 5.2.1 (#204)
dependabot-preview[bot] Dec 19, 2020
9b8c01a
Bump omniauth-google-oauth2 from 0.8.0 to 0.8.1 (#202)
dependabot-preview[bot] Dec 19, 2020
9f18636
Bump bootsnap from 1.4.5 to 1.5.1 (#211)
dependabot-preview[bot] Dec 19, 2020
15741f7
Bump sass-rails from 5.1.0 to 6.0.0 (#215)
dependabot-preview[bot] Dec 21, 2020
3dc3c13
Bump action_policy-graphql from 0.4.0 to 0.5.2 (#203)
dependabot-preview[bot] Dec 21, 2020
caaa0bd
220 assigned tasks page improvements (#226)
zakharoff Dec 22, 2020
8ca6132
227 add author to action items (#229)
zakharoff Dec 25, 2020
5028c0f
Rewrite styles and components for board and cards (#221)
Sooonne Dec 25, 2020
d90506c
Add author id for action items (#231)
IvanShamatov Dec 25, 2020
cac5cdd
rails-upgrade
IvanShamatov Dec 25, 2020
8c780d9
rubocop fixes
IvanShamatov Dec 25, 2020
61bacea
migration fix
IvanShamatov Dec 25, 2020
1552ee0
less loader
IvanShamatov Dec 25, 2020
24e03a4
Fix webpacker config
b0gok Dec 25, 2020
bd03e20
less loader
IvanShamatov Dec 25, 2020
0258431
Try to remove loaders
b0gok Dec 25, 2020
d72396c
Try to set paths option for less loader
b0gok Dec 25, 2020
2370da0
Try without extract css
b0gok Dec 25, 2020
5f3db80
Add less and less-loader as main dependencies
b0gok Dec 25, 2020
4e4e318
Redo less loader
b0gok Dec 25, 2020
ae73754
Prettify webpack loaders
b0gok Dec 25, 2020
3165636
Fix file export name
b0gok Dec 25, 2020
a3fe9d0
Merge branch 'master' of github.com:cybergizer-hq/retrospective
IvanShamatov Dec 25, 2020
3ce0e22
migration fixes
IvanShamatov Dec 25, 2020
f89f946
Bump sidekiq from 6.0.7 to 6.1.2 (#219)
dependabot-preview[bot] Dec 27, 2020
7274341
Permissions system (#225)
nuringa Jan 13, 2021
b8f1b42
refactored build permissions operation and tests (#254)
nuringa Jan 14, 2021
d1b080b
Hotfix/seeds link (#257)
nuringa Jan 15, 2021
afd4dda
avoid duplicate records with seeds (#260)
nuringa Jan 20, 2021
20e7f20
permissions & updated memberships policies & seeds
nuringa Jan 21, 2021
c1c682e
specs for memberships permissions
nuringa Jan 21, 2021
d671436
refactor after review & tests for mutations
nuringa Jan 22, 2021
5f32d54
task to update existing membership permissions
nuringa Jan 27, 2021
7888559
new design updates (#236)
Sooonne Jan 28, 2021
85ca757
github auth
IvanShamatov Jan 28, 2021
342016d
query refactoring & counter of successfully updated
nuringa Jan 28, 2021
15ee455
variable user refactoring
nuringa Jan 29, 2021
66caa8b
seed update
nuringa Jan 29, 2021
33acae5
return credencials fix
nuringa Jan 29, 2021
e3c47da
card to permissions_users & uniq index modified
nuringa Feb 3, 2021
1511a5b
card permissions for policy and allowed? method & seeds
nuringa Feb 3, 2021
56fa398
add permissions when card create & seeds
nuringa Feb 3, 2021
39e6868
save card and build permissions to board extracted
nuringa Feb 3, 2021
94d566d
Merge branch 'memberships-permissions' into cards-permissions
nuringa Feb 8, 2021
a61bbb5
missing permissions rake task added to seeds
nuringa Feb 10, 2021
165f114
Merge pull request #262 from cybergizer-hq/memberships-permissions
ikzekly Feb 10, 2021
3ab9ec2
seed ids replaced with objects
nuringa Feb 11, 2021
d3e21af
refactored with find_or_create_by
nuringa Feb 12, 2021
a1c10e2
Merge pull request #278 from cybergizer-hq/hotfix-seeds
ikzekly Feb 12, 2021
3646112
seeds update
nuringa Feb 15, 2021
7070c03
board_permissions_users card_permissions_users & associations & seeds
nuringa Feb 15, 2021
5986a94
resolved seeds.rb conflict
nuringa Feb 15, 2021
d6095c5
rename permissions_users to board_permissions_users
nuringa Feb 16, 2021
ae52e4b
build permissions refactored
nuringa Feb 16, 2021
94a3fa2
create card operation & allowed? method policies refactored
nuringa Feb 16, 2021
0731b29
like_card permission for members and creator
nuringa Feb 16, 2021
f4fea31
operation for cards build_permissions & refactorings after review
nuringa Feb 18, 2021
df91d5f
tests for card and board permissions
nuringa Feb 23, 2021
baeb3ec
rake task for creating missing card permissions && seeds update
nuringa Feb 23, 2021
06d284a
creat_card operation refactored after review
nuringa Mar 1, 2021
5dab76f
errors output for add card mutation
nuringa Mar 1, 2021
e48e056
Merge pull request #269 from cybergizer-hq/cards-permissions
ikzekly Mar 1, 2021
1b7c996
comment_permissions_users model and associations & permission scopes …
nuringa Mar 2, 2021
0b088a7
create comments operation & build permissions for comments
nuringa Mar 2, 2021
af81f5d
update specs and new tests
nuringa Mar 3, 2021
ae059bd
comment permissions rake task & create cards and comments policies to…
nuringa Mar 3, 2021
a5dfb56
add comment mutation refactored
nuringa Mar 4, 2021
2fbf6f4
permissions for action_items & policy & seeds
nuringa Mar 4, 2021
f456a1a
updated broken tests & specs for new policy
nuringa Mar 5, 2021
9cd5b45
Merge pull request #295 from cybergizer-hq/comments-permissions
ikzekly Mar 9, 2021
9e846c5
Merge branch 'master' into action-items-permissions
nuringa Mar 9, 2021
87d2be2
Merge pull request #301 from cybergizer-hq/action-items-permissions
ikzekly Mar 9, 2021
dcbbf73
add channels, serializers, controllers
Pauluson Apr 28, 2021
0c1c227
fix spec tests
Pauluson May 6, 2021
fb9505e
fix version of ruby in main.yml
Pauluson May 12, 2021
b48056a
fix main.yml v2
Pauluson May 12, 2021
2d22901
fix controllers
Pauluson May 18, 2021
632df73
fix controllers v2
Pauluson May 18, 2021
53b45e8
Merge pull request #336 from cybergizer-hq/replace_graphql_to_rest
ikzekly May 18, 2021
7deb16e
update aws.yml and Dockerfile
Pauluson Jun 8, 2021
2c7e745
Merge pull request #366 from cybergizer-hq/deploy_on_amazon
Pauluson Jun 9, 2021
49ec5f9
update Dockerfile
Pauluson Jun 16, 2021
4e214be
update aws.yml file
Pauluson Jun 16, 2021
aefdad7
update path to AptFile
Pauluson Jun 16, 2021
edc36cc
update Gemfile.lock and add command to Dockerfile
Pauluson Jun 16, 2021
73ba4e4
udapte config for database file
Pauluson Jun 17, 2021
216611b
change version of node
Pauluson Jun 17, 2021
a7ed38e
add ENV varibale in Dockerfile
Pauluson Jun 17, 2021
4366b7d
fixed production config
Pauluson Jun 18, 2021
d80e094
update Dockerfile and fix production
Pauluson Jun 18, 2021
b2ada11
update Dockerfile
Pauluson Jun 18, 2021
54c478c
generate new credentials
Pauluson Jun 18, 2021
0610e0a
add credentials for production
Pauluson Jun 21, 2021
63d7c19
update credetinals for production
Pauluson Jun 21, 2021
22af818
add new run to dokerfile and new args for build
Pauluson Jun 21, 2021
b1208f6
fix coomand for build
Pauluson Jun 21, 2021
c56dd7d
fix aws.yml file
Pauluson Jun 21, 2021
c04cff0
fix dockerfile and aws.yml
Pauluson Jun 21, 2021
148ed49
fix arg name in command build
Pauluson Jun 21, 2021
a48dcd0
fix name of args in build command
Pauluson Jun 21, 2021
7fd316e
delete extra lines in dockerfile
Pauluson Jun 22, 2021
7ae2ff7
add dockerfile for production
Pauluson Jun 22, 2021
2ea5103
fix dockerfile
Pauluson Jun 22, 2021
6aa8bd3
Merge pull request #371 from cybergizer-hq/fix-dockerfile
ikzekly Jun 22, 2021
09c465b
add install yarn
NeverovD Jul 12, 2021
09a5f17
Update Dockerfile
NeverovDS Jul 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
85 changes: 0 additions & 85 deletions .circleci/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .dockerdev/.psqlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\set HISTFILE `[[ -z $PSQL_HISTFILE ]] && echo $HOME/.psql_history || echo $PSQL_HISTFILE`
1 change: 1 addition & 0 deletions .dockerdev/Aptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vim
55 changes: 55 additions & 0 deletions .dockerdev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Source: https://evilmartians.com/chronicles/ruby-on-whales-docker-for-ruby-rails-development

ARG RUBY_VERSION

FROM ruby:$RUBY_VERSION

ARG NODE_MAJOR
ARG PG_MAJOR
ARG BUNDLER_VERSION
ARG YARN_VERSION

# Add PostgreSQL to sources list
RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list

# Add NodeJS to sources list
RUN curl -sL https://deb.nodesource.com/setup_$NODE_MAJOR.x | bash -

# Add Yarn to the sources list
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo 'deb http://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list

# Install dependencies
# We use an external Aptfile for that, stay tuned
COPY .dockerdev/Aptfile /tmp/Aptfile
RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get -yq dist-upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
build-essential \
postgresql-client-$PG_MAJOR \
nodejs \
yarn=$YARN_VERSION-1 \
$(cat /tmp/Aptfile | xargs) && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
truncate -s 0 /var/log/*log
RUN yarn

# Configure bundler and PATH
ENV LANG=C.UTF-8 \
GEM_HOME=/bundle \
BUNDLE_JOBS=4 \
BUNDLE_RETRY=3
ENV BUNDLE_PATH $GEM_HOME
ENV BUNDLE_APP_CONFIG=$BUNDLE_PATH \
BUNDLE_BIN=$BUNDLE_PATH/bin
ENV PATH /app/bin:$BUNDLE_BIN:$PATH

# Upgrade RubyGems and install required Bundler version
RUN gem update --system && \
gem install bundler:$BUNDLER_VERSION

# Create a directory for the app code
RUN mkdir -p /app

WORKDIR /app
File renamed without changes.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# http://editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
12 changes: 10 additions & 2 deletions .env.development.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
DATABASE_URL=postgres://user:password@postgresql:5432/retrospective_development?max_connections=5
GITHUB_ID=
GITHUB_SECRET=
ALFRED_KEY=
ALFRED_SECRET=
S3_BUCKET_NAME=
S3_KEY=
S3_SECRET=
SENTRY_KEY=
SKIP_ALFRED=

GOOGLE_KEY=
GOOGLE_SECRET=
FACEBOOK_KEY=
FACEBOOK_SECRET=
GITHUB_KEY=
GITHUB_SECRET=
4 changes: 2 additions & 2 deletions .env.test.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DATABASE_URL=postgres://user:password@postgresql:5432/retrospective_development?max_connections=5
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL=true
GITHUB_ID=
GITHUB_SECRET=
ALFRED_KEY=
ALFRED_SECRET=
S3_BUCKET_NAME=
S3_KEY=
S3_SECRET=
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on:
workflow_dispatch

name: Deploy to Amazon ECS

jobs:
deploy:
name: Deploy
runs-on: self-hosted

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: retro
IMAGE_TAG: ${{ github.sha }}
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg RUBY_VERSION=2.6.6 --build-arg NODE_MAJOR=12 --build-arg PG_MAJOR=11 --build-arg YARN_VERSION=1.19.1 --build-arg BUNDLER_VERSION=2.0.2 --build-arg SECRET_KEY_BASE=${{ secrets.SECRET_KEY_BASE }} .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
- name: Execute SSH commmands on remote server
uses: JimCronqvist/action-ssh@master
id: deploy-ec2
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: retro
IMAGE_TAG: ${{ github.sha }}
with:
hosts: 'ubuntu@${{ secrets.HOST }}'
privateKey: ${{ secrets.DEPLOY_KEY }}
command: ECR="$ECR_REGISTRY/$ECR_REPOSITORY" IMAGE="$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" ~/deploy/deploy.sh
59 changes: 59 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
env:
RUBY_VERSION: 2.6.6
POSTGRESQL_USERNAME: postgres
POSTGRESQL_PASSWORD: postgres
POSTGRES_DB: postgres

name: Rails tests
on: [push,pull_request]
jobs:
rubocop-test:
name: Rubocop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
- name: Install Rubocop
run: gem install rubocop -v 0.74.0
- name: Check code
run: rubocop
rspec-test:
name: Rspec
needs: rubocop-test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
ports:
- 5432:5432
env:
POSTGRES_USER: ${{ env.POSTGRESQL_USERNAME }}
POSTGRES_PASSWORD: ${{ env.POSTGRESQL_PASSWORD }}
steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
- name: Install postgres client
run: sudo apt-get install libpq-dev
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install dependencies
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Create database
run: |
bundler exec rails db:create RAILS_ENV=test
bundler exec rails db:migrate RAILS_ENV=test
- name: Run tests
run: bundle exec rspec
- name: Upload coverage results
uses: actions/upload-artifact@master
if: always()
with:
name: coverage report
path: coverage
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# Ignore bundler config.
/.bundle
/.dockerdev/bundle

# Ignore all logfiles and tempfiles.
/log/*
Expand All @@ -22,14 +23,17 @@

/public/assets
.byebug_history
.ruby-gemset

# Ignore master key for decrypting credentials and more.
/config/master.key

/vendor/*

.env

.generators
.rakeTasks
.idea/
/public/packs
/public/packs-test
/node_modules
Expand All @@ -38,3 +42,6 @@ yarn-debug.log*
.yarn-integrity
coverage
**/uploads
**/.DS_Store

/config/credentials/production.key
8 changes: 8 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Metrics/LineLength:
Metrics/BlockLength:
Exclude:
- ./spec/**/*_spec.rb
- ./lib/tasks/*.rake

Metrics/MethodLength:
Exclude:
Expand All @@ -28,5 +29,12 @@ Lint/AmbiguousBlockAssociation:
Style/Documentation:
Enabled: false

Style/IfUnlessModifier:
Exclude:
- ./db/seeds.rb

Bundler/OrderedGems:
Enabled: false

Metrics/AbcSize:
Max: 20
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.6.3
ruby-2.6.6
Loading