File tree 3 files changed +41
-15
lines changed
3 files changed +41
-15
lines changed Original file line number Diff line number Diff line change 40
40
runs-on : ${{matrix.plat}}-latest
41
41
steps :
42
42
- uses : actions/checkout@v3
43
- - run : rm Gemfile.lock
44
43
- uses : ruby/setup-ruby@v1
45
44
with :
46
- ruby-version : " 3.1"
47
- bundler-cache : true
45
+ ruby-version : " 3.2"
48
46
bundler : latest
49
47
- run : test/integration/user_journey_test.sh
50
48
shell : bash
Original file line number Diff line number Diff line change 14
14
- .github/workflows/upstream.yml # this file
15
15
16
16
jobs :
17
- rails :
18
- name : empty job
19
- runs-on : ubuntu-latest
17
+ user-journey :
18
+ name : " user-journey (rails main)"
19
+ strategy :
20
+ fail-fast : false
21
+ matrix :
22
+ plat : ["ubuntu", "windows", "macos"]
23
+ runs-on : ${{matrix.plat}}-latest
24
+ env :
25
+ RAILSOPTS : --git=https://github.com/rails/rails --branch main
20
26
steps :
21
- - run : echo hello world
27
+ - uses : actions/checkout@v3
28
+ - uses : ruby/setup-ruby@v1
29
+ with :
30
+ ruby-version : " 3.2"
31
+ bundler : latest
32
+ - run : test/integration/user_journey_test.sh
33
+ shell : bash
Original file line number Diff line number Diff line change 5
5
set -o pipefail
6
6
set -eux
7
7
8
+ # set up dependencies
9
+ rm -f Gemfile.lock
10
+ bundle remove actionmailer
11
+ bundle add rails --skip-install ${RAILSOPTS:- }
12
+ bundle install
13
+
8
14
# fetch the upstream executables
9
15
bundle exec rake download
10
16
11
- # create a rails app in a directory with spaces in the name (#176, #184)
12
- rm -rf " Has A Space "
13
- mkdir " Has A Space "
14
- pushd " Has A Space "
17
+ # do our work a directory with spaces in the name (#176, #184)
18
+ rm -rf " My Workspace "
19
+ mkdir " My Workspace "
20
+ pushd " My Workspace "
15
21
16
- gem install rails
17
- rails new test-app --skip-bundle
22
+ # create a rails app
23
+ bundle exec rails -v
24
+ bundle exec rails new test-app --skip-bundle
18
25
pushd test-app
19
26
20
- # install tailwindcss-rails
27
+ # make sure to use the same version of rails (e.g., install from git source if necessary)
28
+ bundle remove rails
29
+ bundle add rails --skip-install ${RAILSOPTS:- }
30
+
31
+ # use the tailwindcss-rails under test
21
32
bundle add tailwindcss-rails --path=" ../.."
22
33
bundle install
34
+ bundle show --paths
23
35
36
+ # install tailwindcss
24
37
bin/rails tailwindcss:install
25
38
39
+ # TEST: tailwind was installed correctly
40
+ grep tailwind app/views/layouts/application.html.erb
41
+
42
+ # TEST: rake tasks don't exec (#188)
26
43
cat << EOF >> Rakefile
27
44
task :still_here do
28
45
puts "Rake process did not exit early"
29
46
end
30
47
EOF
31
48
32
- # ensure rake tasks don't exec (#188)
33
49
bin/rails tailwindcss:build still_here | grep " Rake process did not exit early"
You can’t perform that action at this time.
0 commit comments