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

Error: Locales is not getting picked in php-unit with php-actions. #53

Open
ahmedkhan847 opened this issue Apr 21, 2023 · 2 comments
Open

Comments

@ahmedkhan847
Copy link

So I was moving to php-actions/phpunit since I am also using the composer package from you guys. But when I am running my GA with it my locales is not getting picked while running the tests. Although I am setting the locales during my build:

- name: Set Locales
        run: |
          sudo sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
          sudo sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen
          sudo sed -i -e 's/# nl_NL.UTF-8 UTF-8/nl_NL.UTF-8 UTF-8/' /etc/locale.gen
          sudo dpkg-reconfigure --frontend=noninteractive locales

But whenever I am running tests they are not getting picked. do I need to add some extension.

- name: PHPUnit Testing
        uses: php-actions/phpunit@v3
        with:
          version: 8.5.2
          php_version: "7.2"
          php_extensions: mongodb imagick soap bcmath gd exif json mysqli pcntl pdo_mysql zip pcov
          configuration: phpunit.xml.dist-workflow
          memory_limit: "1G"
          coverage_clover: coverage.xml

Any idea how can I fix it?

@g105b
Copy link
Member

g105b commented Apr 24, 2023

Will look into this for you soon.

@g105b
Copy link
Member

g105b commented Sep 18, 2023

#57 will fix this issue when it is implemented. Your locale.gen functions are being run on the Github Actions workspace, but they are not being run within the PHPUnit container.

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

No branches or pull requests

2 participants