Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit
Browse files Browse the repository at this point in the history
hopsoft committed Jan 8, 2024
1 parent 724a979 commit ce076dd
Showing 4 changed files with 29 additions and 31 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -31,36 +31,36 @@ jobs:
- name: Yarn install
run: yarn install --frozen-lockfile

- name: Install Playwright Browsers
run: yarn playwright install

#- name: Install Playwright Dependencies
#run: yarn playwright install-deps

- name: Install Playwright Browsers
run: yarn playwright install chromium

#- name: Install Playwright dependencies
#run: |
#apt-get update
#apt-get -y --no-install-recommends install \
#libasound2 \
#libatk-bridge2.0-0 \
#libatk1.0-0 \
#libc6 \
#libcairo-gobject2 \
#libcairo2 \
#libcups2 \
#libdbus-1-3 \
#libexpat1 \
#libfontconfig1 \
#libfreetype6 \
#libgbm1 \
#libgdk-pixbuf2.0-0 \
#libglib2.0-0 \
#libgtk-3-0 \
#libnss3 \
#libpango-1.0-0 \
#libpangocairo-1.0-0 \
#libstdc++6 \
#zlib1g
- name: Install Playwright dependencies
run: |
apt-get update
apt-get -y --no-install-recommends install \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libc6 \
libcairo-gobject2 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libfreetype6 \
libgbm1 \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libgtk-3-0 \
libnss3 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
zlib1g
- name: Run ruby tests
run: bundle exec rake
2 changes: 1 addition & 1 deletion bin/docker/run/local
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ bundle clean --force
# Playwright - SEE: https://playwright.dev
# ============================================================================================================
yarn playwright install-deps
yarn playwright install
yarn playwright install chromium
apt-get clean


2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -14,8 +14,6 @@ x-default-app: &default_app
environment:
DATABASE_URL: sqlite3:///mnt/external/database/development.sqlite3
GEM_HOME: /mnt/external/gems
PLAYWRIGHT_BROWSERS_PATH: 0
PLAYWRIGHT_CLI_EXECUTABLE_PATH: /app/node_modules/.bin/playwright
RAILS_ENV: development
RAILS_LOG_TO_STDOUT: true
RAILS_SERVE_STATIC_FILES: true
2 changes: 1 addition & 1 deletion test/application_system_test_case.rb
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :null

def self.playwright
@playwright ||= Playwright.create(playwright_cli_executable_path: ENV.fetch("PLAYWRIGHT_CLI_EXECUTABLE_PATH", "/app/node_modules/.bin/playwright"))
@playwright ||= Playwright.create(playwright_cli_executable_path: "#{`yarn bin`.strip}/playwright")
end

alias_method :orig_page, :page

0 comments on commit ce076dd

Please sign in to comment.