Retry once when disabling fail points (#1445) #2435
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: "Tests" | |
| on: | |
| merge_group: | |
| pull_request: | |
| branches: | |
| - "v*.*" | |
| - "master" | |
| - "feature/*" | |
| push: | |
| branches: | |
| - "v*.*" | |
| - "master" | |
| - "feature/*" | |
| env: | |
| # TODO: change to "stable" once 1.20.0 is released | |
| # DRIVER_VERSION: "stable" | |
| DRIVER_VERSION: "mongodb/[email protected]" | |
| jobs: | |
| phpunit: | |
| name: "PHPUnit tests" | |
| runs-on: "${{ matrix.os }}" | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: | |
| - "ubuntu-20.04" | |
| php-version: | |
| - "7.4" | |
| - "8.0" | |
| - "8.1" | |
| - "8.2" | |
| - "8.3" | |
| - "8.4" | |
| mongodb-version: | |
| - "4.4" | |
| topology: | |
| - "server" | |
| include: | |
| - os: "ubuntu-20.04" | |
| php-version: "8.0" | |
| mongodb-version: "6.0" | |
| topology: "replica_set" | |
| - os: "ubuntu-20.04" | |
| php-version: "8.0" | |
| mongodb-version: "6.0" | |
| topology: "sharded_cluster" | |
| - os: "ubuntu-20.04" | |
| php-version: "8.0" | |
| mongodb-version: "5.0" | |
| topology: "server" | |
| - os: "ubuntu-20.04" | |
| php-version: "8.0" | |
| mongodb-version: "4.4" | |
| topology: "replica_set" | |
| - os: "ubuntu-20.04" | |
| php-version: "8.0" | |
| mongodb-version: "4.4" | |
| topology: "sharded_cluster" | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v4" | |
| with: | |
| fetch-depth: 2 | |
| - id: setup-mongodb | |
| uses: mongodb-labs/drivers-evergreen-tools@master | |
| with: | |
| version: ${{ matrix.mongodb-version }} | |
| topology: ${{ matrix.topology }} | |
| - name: "Setup" | |
| uses: "./.github/actions/setup" | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| driver-version: ${{ env.DRIVER_VERSION }} | |
| php-ini-values: "zend.assertions=1" | |
| - name: "Run PHPUnit" | |
| run: "vendor/bin/simple-phpunit -v" | |
| env: | |
| SYMFONY_DEPRECATIONS_HELPER: 999999 | |
| MONGODB_URI: ${{ steps.setup-mongodb.outputs.cluster-uri }} |