diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 1736fb1..284b296 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -40,5 +40,18 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-progress - - name: Run test suite - run: composer run-script test + - name: PHPUnit Tests + uses: php-actions/phpunit@v3 + env: + XDEBUG_MODE: coverage + with: + configuration: phpunit.xml + php_extensions: xdebug + args: --coverage-clover ./coverage.xml + + - name: Upload to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODE_COV_TOKEN }} + files: ./coverage.xml + verbose: true diff --git a/composer.json b/composer.json index 597fccb..8984573 100644 --- a/composer.json +++ b/composer.json @@ -24,8 +24,5 @@ "psr-4": { "Danny50610\\BpeTokeniser\\Tests\\": "tests/" } - }, - "scripts": { - "test": "vendor/bin/phpunit" } }