Skip to content

Extensions not working #111

Description

@oti-adjei

Hi, I'm a bit new to GitHub Actions and I'm using the composer version to include PDO as well as PHPunit in my .yml
I get this error when I run my Github Action:

13) App\test\model\ProductTest::testUpdateProduct
PDOException: could not find driver

So far this is my .yml:

name: CI

on:
  push:
    branches:
      - OOP
jobs:
  build-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3   
      - uses: php-actions/composer@v6
        with:
          php_version: "8.2"
          php_extensions: pdo_mysql
      - name: PHPUnit Tests
        uses: php-actions/phpunit@master
        with:
          version: 9.6
          bootstrap: vendor/autoload.php
          configuration: ./phpunit.xml
          args: --coverage-text

Am I doing something wrong?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions