File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -609,6 +609,14 @@ def dockerfile_build_packages
609
609
packages . compact . sort
610
610
end
611
611
612
+ def ci_packages
613
+ if depends_on_system_test?
614
+ dockerfile_build_packages << "google-chrome-stable"
615
+ else
616
+ dockerfile_build_packages
617
+ end
618
+ end
619
+
612
620
def css_gemfile_entry
613
621
return if options [ :api ]
614
622
return unless options [ :css ]
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ jobs:
100
100
<%- end -%>
101
101
steps:
102
102
- name: Install packages
103
- run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable <%= dockerfile_base_packages .join(" ") %>
103
+ run: sudo apt-get update && sudo apt-get install --no-install-recommends -y <%= ci_packages .join(" ") %>
104
104
105
105
- name: Checkout code
106
106
uses: actions/checkout@v4
Original file line number Diff line number Diff line change 64
64
<%- end -%>
65
65
steps:
66
66
- name: Install packages
67
- run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable <%= dockerfile_base_packages .join(" ") %>
67
+ run: sudo apt-get update && sudo apt-get install --no-install-recommends -y <%= ci_packages .join(" ") %>
68
68
69
69
- name: Checkout code
70
70
uses: actions/checkout@v4
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ def test_api_modified_files
62
62
assert_no_match ( /test:system/ , content )
63
63
assert_no_match ( /screenshots/ , content )
64
64
assert_no_match ( /scan_js/ , content )
65
+ assert_no_match ( /google-chrome-stable/ , content )
65
66
end
66
67
end
67
68
Original file line number Diff line number Diff line change @@ -519,6 +519,10 @@ def test_generator_if_skip_system_test_is_given
519
519
assert_directory ( "test" )
520
520
521
521
assert_no_directory ( "test/system" )
522
+
523
+ assert_file ".github/workflows/ci.yml" do |content |
524
+ assert_no_match ( /google-chrome-stable/ , content )
525
+ end
522
526
end
523
527
524
528
def test_does_not_generate_system_test_files_if_skip_system_test_is_given
You can’t perform that action at this time.
0 commit comments