diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 1ef7894..fb254da 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -32,8 +32,5 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-progress - # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" - # Docs: https://getcomposer.org/doc/articles/scripts.md - - # - name: Run test suite - # run: composer run-script test + - name: Run test suite + run: composer run-script test diff --git a/composer.json b/composer.json index 2a887fd..85808f8 100644 --- a/composer.json +++ b/composer.json @@ -25,5 +25,8 @@ "psr-4": { "Danny50610\\BpeTokeniser\\Tests\\": "tests/" } + }, + "scripts": { + "test": "vendor/bin/phpunit" } }