File tree Expand file tree Collapse file tree 2 files changed +54
-24
lines changed Expand file tree Collapse file tree 2 files changed +54
-24
lines changed Original file line number Diff line number Diff line change 1+ name : Ruby
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+
9+ services :
10+ mariadb :
11+ image : mariadb
12+ env :
13+ MYSQL_USER : user
14+ MYSQL_PASSWORD : password
15+ MYSQL_DATABASE : test
16+ MYSQL_ROOT_PASSWORD : password
17+ options : >-
18+ --health-cmd "mysqladmin ping"
19+ --health-interval 10s
20+ --health-timeout 5s
21+ --health-retries 5
22+ ports :
23+ - 3306:3306
24+ redis :
25+ image : redis
26+ options : >-
27+ --health-cmd "redis-cli ping"
28+ --health-interval 10s
29+ --health-timeout 5s
30+ --health-retries 5
31+ ports :
32+ - 6379:6379
33+
34+ steps :
35+ - name : Checkout source code
36+ uses : actions/checkout@v2
37+ - name : Setup chromedriver
38+ 39+ - name : Setup ruby
40+ uses : ruby/setup-ruby@v1
41+ with :
42+ bundler-cache : true
43+ - name : Initialize stock configuration
44+ run : bundle exec rake foodsoft:setup:stock_config
45+ - name : Load database schema
46+ run : bundle exec rake db:schema:load
47+ env :
48+ RAILS_ENV : test
49+ DATABASE_URL :
mysql2://user:[email protected] /test 50+ - name : Run tests
51+ run : bundle exec rake spec
52+ env :
53+ RAILS_ENV : test
54+ DATABASE_URL :
mysql2://user:[email protected] /test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments