Skip to content

Commit

Permalink
Attempt to make GH Actions happy
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed Jan 7, 2024
1 parent 31554fe commit 56198ed
Show file tree
Hide file tree
Showing 6 changed files with 441 additions and 278 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ jobs:
cache: 'yarn'

- name: Yarn install
run: yarn install --frozen-lockfile
run: |
yarn global add playwright
playwright install-deps
playwright install
yarn install --frozen-lockfile
- name: Run ruby tests
run: bundle exec rake test
1 change: 1 addition & 0 deletions bin/docker/run/local
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ bundle install
# ============================================================================================================
yarn global add playwright
playwright install-deps
playwright install
apt-get clean


Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ x-default-app: &default_app
DATABASE_URL: sqlite3:///mnt/external/database/development.sqlite3
GEM_HOME: /mnt/external/gems
PLAYWRIGHT_BROWSERS_PATH: 0
PLAYWRIGHT_CLI_EXECUTABLE_PATH: /usr/local/bin/playwright
RAILS_ENV: development
RAILS_LOG_TO_STDOUT: true
RAILS_SERVE_STATIC_FILES: true
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@tailwindcss/typography": "^0.5.9",
"esbuild": "^0.19.0",
"flowbite": "1.8.1",
"playwright": "^1.36.2",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.5.4",
"tailwindcss": "^3.3.3"
Expand Down
2 changes: 1 addition & 1 deletion test/application_system_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :null

def self.playwright
@playwright ||= Playwright.create(playwright_cli_executable_path: Rails.root.join("../../node_modules/.bin/playwright"))
@playwright ||= Playwright.create(playwright_cli_executable_path: ENV.fetch("PLAYWRIGHT_CLI_EXECUTABLE_PATH", "/usr/local/bin/playwright"))
end

alias_method :orig_page, :page
Expand Down
Loading

0 comments on commit 56198ed

Please sign in to comment.