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