Add functions for "whole bible" #131
This file contains hidden or 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: Unit Tests | |
| on: | |
| # pull_request: null | |
| push: null | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] | |
| name: PHP ${{ matrix.php-versions }} Tests | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| coverage: xdebug | |
| ini-values: max_execution_time=15 | |
| env: | |
| update: true | |
| - name: Composer | |
| run: composer update | |
| - name: Tests (PHPUnit 8) | |
| env: | |
| XDEBUG_MODE: coverage | |
| run: ./vendor/bin/phpunit -c phpunit.8.xml --coverage-clover clover.xml | |
| if: (matrix.php-versions == '7.0') || (matrix.php-versions == '7.1') || (matrix.php-versions == '7.2') | |
| - name: Tests (PHPUnit 9) | |
| env: | |
| XDEBUG_MODE: coverage | |
| run: ./vendor/bin/phpunit -c phpunit.9.xml --coverage-clover clover.xml | |
| if: (matrix.php-versions == '7.3') || (matrix.php-versions == '7.4') || (matrix.php-versions == '8.0') | |
| - name: Tests (PHPUnit 10) | |
| env: | |
| XDEBUG_MODE: coverage | |
| run: ./vendor/bin/phpunit -c phpunit.10.xml --coverage-clover clover.xml | |
| if: (matrix.php-versions == '8.1') | |
| - name: Tests (PHPUnit 11) | |
| env: | |
| XDEBUG_MODE: coverage | |
| run: ./vendor/bin/phpunit -c phpunit.11.xml --coverage-clover clover.xml | |
| if: (matrix.php-versions == '8.2') | |
| - name: Tests (PHPUnit Latest) | |
| env: | |
| XDEBUG_MODE: coverage | |
| run: ./vendor/bin/phpunit -c phpunit.xml --coverage-clover clover.xml | |
| if: (matrix.php-versions > 8.2) | |
| - name: Coveralls Test Submission | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COVERALLS_PARALLEL: true | |
| COVERALLS_FLAG_NAME: PHP ${{ matrix.php-versions }} | |
| run: ./vendor/bin/php-coveralls -x clover.xml -o coverage.json -v | |
| finish: | |
| name: Close Coveralls Run | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| needs: tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Close Coveralls Run | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| COVERALLS_ENDPOINT: https://coveralls.io | |
| run: curl -k $COVERALLS_ENDPOINT/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$GITHUB_RUN_ID&payload[status]=done" |