Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11 & PHP 8.4 #80

Open
cwbsl opened this issue Jan 21, 2025 · 1 comment
Open

Laravel 11 & PHP 8.4 #80

cwbsl opened this issue Jan 21, 2025 · 1 comment

Comments

@cwbsl
Copy link

cwbsl commented Jan 21, 2025

Hi there

First of all thanks for this library, even though I wasn't able to get it to work properly for my case yet. I have the following setup:

  • Laravel 11
  • PHP 8.4

And this is my .gitlab-ci.yml file:

browser:
  stage: test
  tags:
    - ubuntu
  cache:
    key: ${CI_BUILD_REF_NAME}
    paths:
      - vendor
      - node_modules
    policy: pull
  services:
    - name: mysql:8.4
      alias: mysql-test
  image: chilio/laravel-dusk-ci:php-8.4
  variables:
    APP_ENV: local
    APP_DEBUG: true
    APP_URL: http://localhost:8000
    DB_HOST: mysql
    MYSQL_ROOT_PASSWORD: MyVerySecretPassword!
    MYSQL_DATABASE: mydatabasename
    MYSQL_PASSWORD: MyVerySecretPassword!
  script:
    - php artisan dusk:install
    - configure-laravel
    - start-nginx-ci-project
    - php artisan migrate --force
    - php artisan db:seed --class=DatabaseSeeder
    - php artisan dusk --colors --debug
  artifacts:
    paths:
      - ./storage/logs # for debugging
      - ./tests/Browser/screenshots
      - ./tests/Browser/console
    expire_in: 7 days
    when: always

And here is the output I get:

Image

After that it just loops and times out after 1 hour.

What am I doing wrong?

@chilio
Copy link
Owner

chilio commented Feb 5, 2025

Hi, have earlier commands finished properly?
Could you post the full log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants