File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 43
43
fail-fast : false
44
44
matrix :
45
45
plat : ["ubuntu", "windows", "macos"]
46
+ ref : ["7-2-stable", "v8.0.0.beta1", "main"]
46
47
env :
47
- RAILSOPTS : --git=https://github.com/rails/rails --branch main
48
+ RAILSOPTS : --git=https://github.com/rails/rails --ref=${{ ref }}
48
49
steps :
49
50
- uses : actions/checkout@v4
50
51
- uses : ruby/setup-ruby@v1
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ bundle show --paths
37
37
bin/rails tailwindcss:install
38
38
39
39
# TEST: tailwind was installed correctly
40
- grep tailwind app/views/layouts/application.html.erb
40
+ grep -q tailwind app/views/layouts/application.html.erb
41
41
42
42
# TEST: rake tasks don't exec (#188)
43
43
cat << EOF >> Rakefile
47
47
EOF
48
48
49
49
bin/rails tailwindcss:build still_here | grep " Rake process did not exit early"
50
+
51
+ if [[ $( rails -v) > " Rails 8.0.0.beta" ]] ; then
52
+ # TEST: presence of the generated file
53
+ bin/rails generate authentication
54
+ grep -q PasswordsController app/controllers/passwords_controller.rb
55
+ fi
56
+
57
+ # TEST: presence of the generated file
58
+ bin/rails generate scaffold post title:string body:text published:boolean
59
+ grep -q " Show this post" app/views/posts/index.html.erb
You can’t perform that action at this time.
0 commit comments