File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
lib/rails/generators/rails/app/templates/github Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ jobs:
131
131
<%- else -%>
132
132
run: bin/rails db:test:prepare test test:system
133
133
<%- end -%>
134
+ <%- unless options[:api] -%>
134
135
135
136
- name: Keep screenshots from failed system tests
136
137
uses: actions/upload-artifact@v4
@@ -139,4 +140,5 @@ jobs:
139
140
name: screenshots
140
141
path: ${{ github.workspace }}/tmp/screenshots
141
142
if-no-files-found: ignore
143
+ <%- end -%>
142
144
<% end -%>
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ def test_api_modified_files
57
57
assert_file "config/environments/production.rb" do |content |
58
58
assert_no_match ( /action_controller\. perform_caching = true/ , content )
59
59
end
60
+
61
+ assert_file ".github/workflows/ci.yml" do |content |
62
+ assert_no_match ( /test:system/ , content )
63
+ assert_no_match ( /screenshots/ , content )
64
+ end
60
65
end
61
66
62
67
def test_dockerfile
You can’t perform that action at this time.
0 commit comments