File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 - edge
1111
1212jobs :
13+ # Gems that use SQLite — no external service needed
1314 test :
1415 name : ${{ matrix.gem }}
1516 runs-on : ubuntu-latest
1920 gem :
2021 - hyperstack-config
2122 - hyper-state
23+ - hyper-component
24+ - hyper-store
25+ - hyper-router
2226
2327 defaults :
2428 run :
3438 working-directory : ruby/${{ matrix.gem }}
3539 bundler-cache : true
3640
41+ - name : Prepare test app
42+ run : bundle exec rake spec:prepare
43+
44+ - name : Run specs
45+ run : bundle exec rake spec
46+ env :
47+ DRIVER : github
48+ RAILS_ENV : test
49+
50+ # hyper-operation needs MySQL
51+ test-operation :
52+ name : hyper-operation
53+ runs-on : ubuntu-latest
54+
55+ services :
56+ mysql :
57+ image : mysql:8.0
58+ env :
59+ MYSQL_ROOT_PASSWORD : root
60+ MYSQL_DATABASE : hyper_operation_test
61+ ports :
62+ - 3306:3306
63+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
64+
65+ defaults :
66+ run :
67+ working-directory : ruby/hyper-operation
68+
69+ steps :
70+ - uses : actions/checkout@v4
71+
72+ - name : Set up Ruby
73+ uses : ruby/setup-ruby@v1
74+ with :
75+ ruby-version : ' 3.1'
76+ working-directory : ruby/hyper-operation
77+ bundler-cache : true
78+
79+ - name : Prepare test app database
80+ run : bundle exec rake spec:prepare
81+ env :
82+ RAILS_ENV : test
83+ DB_HOST : 127.0.0.1
84+ DB_USER : root
85+ DB_PASSWORD : root
86+
3787 - name : Run specs
3888 run : bundle exec rake spec
3989 env :
4090 DRIVER : github
4191 RAILS_ENV : test
92+ DB_HOST : 127.0.0.1
93+ DB_USER : root
94+ DB_PASSWORD : root
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ gem 'hyper-state', path: '../hyper-state'
88# gem 'opal-browser', git: 'https://github.com/opal/opal-browser'
99# end
1010gem 'hyper-trace' , path : '../hyper-trace'
11+ gem 'rack' , '< 3' # puma <= 5.4 requires rack < 3 (rack/handler removed in rack 3)
1112
1213#gem 'puma', '~> 3.11.0' # As of adding, version 3.12.0 isn't working so we are locking
1314gemspec
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ gem 'hyper-spec', path: '../hyper-spec'
44gem 'hyperstack-config' , path : '../hyperstack-config'
55gem 'hyper-state' , path : '../hyper-state'
66gem 'hyper-component' , path : '../hyper-component'
7+ gem 'rack' , '< 3' # puma <= 5.4 requires rack < 3 (rack/handler removed in rack 3)
78gemspec
Original file line number Diff line number Diff line change 2929default : &default
3030 adapter : mysql2
3131 encoding : utf8
32- username : root
32+ username : <%= ENV['DB_USER'] || 'root' %>
33+ password : <%= ENV['DB_PASSWORD'] || '' %>
34+ host : <%= ENV['DB_HOST'] || '127.0.0.1' %>
35+ port : 3306
3336
3437development :
3538 << : *default
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ gem 'hyperstack-config', path: '../hyperstack-config'
55gem 'hyper-state' , path : '../hyper-state'
66gem 'hyper-component' , path : '../hyper-component'
77gem 'hyper-store' , path : '../hyper-store'
8+ gem 'rack' , '< 3' # puma <= 5.4 requires rack < 3 (rack/handler removed in rack 3)
89gemspec
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ gem 'hyper-spec', path: '../hyper-spec'
33gem 'hyperstack-config' , path : '../hyperstack-config'
44gem 'hyper-component' , path : '../hyper-component'
55gem 'hyper-state' , path : '../hyper-state'
6+ gem 'rack' , '< 3' # puma <= 5.4 requires rack < 3 (rack/handler removed in rack 3)
67gemspec
You can’t perform that action at this time.
0 commit comments