File tree Expand file tree Collapse file tree 6 files changed +53
-44
lines changed Expand file tree Collapse file tree 6 files changed +53
-44
lines changed Original file line number Diff line number Diff line change
1
+ name : actions
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - " *"
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ env :
13
+ DATABASE_HOST : localhost
14
+ TZ : Asia/Tokyo
15
+
16
+ SCRIVITO_PASSWORD : testpassword
17
+ SCRIVITO_TENANT : ${{ secrets.SCRIVITO_TENANT }}
18
+ SCRIVITO_API_KEY : ${{ secrets.SCRIVITO_API_KEY }}
19
+ services :
20
+ db :
21
+ image : postgres:10.4-alpine
22
+ ports :
23
+ - 5432:5432
24
+ env :
25
+ POSTGRES_USER : postgres
26
+ POSTGRES_PASSWORD : password
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ with :
30
+ fetch-depth : 1
31
+ - uses : ruby/setup-ruby@v1
32
+ with :
33
+ ruby-version : 2.7.3
34
+ bundler-cache : true
35
+ - name : prepare db
36
+ run : |
37
+ bundle exec rails db:create
38
+ bundle exec rails db:setup
39
+ - name : rspec
40
+ run : bundle exec rails spec
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
web : bundle exec puma -C config/puma.rb
2
+ release : ./scripts/release.sh
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ default: &default
20
20
# For details on connection pooling, see Rails configuration guide
21
21
# http://guides.rubyonrails.org/configuring.html#database-pooling
22
22
pool : <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
23
- username : <%= ENV.fetch('DATABASE_USER') { '' } %>
24
- password : <%= ENV.fetch('DATABASE_PASSWORD') { '' } %>
25
- host : <%= ENV.fetch('DATABASE_HOST') { '' } %>
26
- port : <%= ENV.fetch('DATABASE_PORT') { '' } %>
23
+ username : <%= ENV.fetch('DATABASE_USER') { 'postgres ' } %>
24
+ password : <%= ENV.fetch('DATABASE_PASSWORD') { 'password ' } %>
25
+ host : <%= ENV.fetch('DATABASE_HOST') { 'db ' } %>
26
+ port : <%= ENV.fetch('DATABASE_PORT') { '5432 ' } %>
27
27
28
28
development :
29
29
<< : *default
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ services:
16
16
depends_on :
17
17
- db
18
18
db :
19
- image : " postgres:10.4"
19
+ image : " postgres:10.4-alpine "
20
20
environment :
21
21
- " POSTGRES_USER=postgres"
22
22
- " POSTGRES_PASSWORD=password"
Original file line number Diff line number Diff line change
1
+ set -e
2
+
3
+ bundle exec rails db:migrate
4
+ bundle exec rails db:seed
5
+ bundle exec rails dojos:update_db_by_yaml
6
+ bundle exec rails dojo_event_services:upsert
7
+ bundle exec rails podcasts:upsert
You can’t perform that action at this time.
0 commit comments