File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
lib/rails/generators/rails/app/templates/github Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -126,12 +126,12 @@ jobs:
126
126
DATABASE_URL: postgres://postgres:postgres@localhost:5432
127
127
<%- end -%>
128
128
# REDIS_URL: redis://localhost:6379/0
129
- <%- if options[:api] -%>
129
+ <%- if options[:api] || options[:skip_system_test] -%>
130
130
run: bin/rails db:test:prepare test
131
131
<%- else -%>
132
132
run: bin/rails db:test:prepare test test:system
133
133
<%- end -%>
134
- <%- unless options[:api] -%>
134
+ <%- unless options[:api] || options[:skip_system_test] -%>
135
135
136
136
- name: Keep screenshots from failed system tests
137
137
uses: actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -544,7 +544,9 @@ def test_generator_if_skip_system_test_is_given
544
544
assert_no_directory ( "test/system" )
545
545
546
546
assert_file ".github/workflows/ci.yml" do |content |
547
- assert_no_match ( /google-chrome-stable/ , content )
547
+ assert_match ( /db:test:prepare test/ , content )
548
+ assert_no_match ( /test:system/ , content )
549
+ assert_no_match ( /screenshots/ , content )
548
550
end
549
551
end
550
552
You can’t perform that action at this time.
0 commit comments