Skip to content

Commit 8f249f2

Browse files
authored
Merge pull request rails#53100 from navidemad/master
Skip test:system in Github workflow when options[:api] is passed in rails new command
2 parents 3ebff69 + 576ba9e commit 8f249f2

File tree

1 file changed

+4
-0
lines changed
  • railties/lib/rails/generators/rails/app/templates/github

1 file changed

+4
-0
lines changed

railties/lib/rails/generators/rails/app/templates/github/ci.yml.tt

+4
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ jobs:
126126
DATABASE_URL: postgres://postgres:postgres@localhost:5432
127127
<%- end -%>
128128
# REDIS_URL: redis://localhost:6379/0
129+
<%- if options[:api] -%>
130+
run: bin/rails db:test:prepare test
131+
<%- else -%>
129132
run: bin/rails db:test:prepare test test:system
133+
<%- end -%>
130134

131135
- name: Keep screenshots from failed system tests
132136
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)