Skip to content

Commit 4cb4a59

Browse files
authored
Install playwright dependencies in test image (#955)
This step avoids having to install playwright in each CI run. Note I also removed the yarn check as it shouldn't be necessary anymore.
1 parent 09d5eb6 commit 4cb4a59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

image/discourse_test/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ FROM with_browsers AS release
3131

3232
RUN cd /var/www/discourse &&\
3333
sudo -u discourse bundle install --jobs $(($(nproc) - 1)) &&\
34-
sudo -E -u discourse -H /bin/bash -c 'if [ -f yarn.lock ]; then (yarn install && yarn cache clean); else CI=1 pnpm install; fi'
34+
sudo -E -u discourse -H /bin/bash -c 'CI=1 pnpm install'
3535

3636
RUN cd /var/www/discourse && sudo -E -u discourse -H bundle exec rake plugin:install_all_official &&\
3737
LOAD_PLUGINS=1 sudo -E -u discourse -H bundle exec rake plugin:install_all_gems &&\
3838
sudo -E -u discourse -H bundle exec ruby script/install_minio_binaries.rb
3939

40+
RUN cd /var/www/discourse && \
41+
pnpm playwright install --with-deps --no-shell chromium
42+
4043
ENTRYPOINT ["sudo", "-E", "-u", "discourse", "-H", "ruby", "script/docker_test.rb"]

0 commit comments

Comments
 (0)