From 37c1d23f67dd9c459a842cf7ea5603ddbaf82d08 Mon Sep 17 00:00:00 2001 From: "Chen, Danny" Date: Fri, 18 Aug 2023 22:56:18 +0800 Subject: [PATCH] feat: add test script --- .github/workflows/php.yml | 7 ++----- composer.json | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) 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" } }