implement methods to make espeak to speak #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHPUnit | |
on: pull_request | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
strategy: | |
# do not stop on another job's failure | |
fail-fast: false | |
matrix: | |
php-versions: ['8.2', '8.3'] | |
coverage: ['xdebug'] | |
xdebug_mode: ['debug'] | |
name: php${{ matrix.php-versions }} | |
steps: | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y espeak-ng | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up php ${{ matrix.php-versions }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: ${{ matrix.coverage }} | |
- name: Set up PHP dependencies | |
run: composer i | |
- name: PHPUnit | |
env: | |
XDEBUG_MODE: ${{ matrix.xdebug_mode }} | |
run: composer run test:unit | |
upload-coverage: | |
needs: phpunit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload coverage results to Coveralls | |
if: matrix.xdebug_mode == 'coverage' | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_PARALLEL: true | |
COVERALLS_FLAG_NAME: php-${{ matrix.php-versions }} | |
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml --json_path=build/logs/coveralls-upload.json -v | |
finish-coverage: | |
needs: upload-coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Let Coveralls know that all tests have finished | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel-finished: true |