name: Nightly Tests on: push: pull_request: schedule: - cron: '0 */12 * * *' jobs: ci: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] php: ['8.1'] phpunit-branch: [main] name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.phpunit-branch }} steps: - name: Checkout uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: composer:v2 coverage: none - name: Setup Problem Matchers run: | echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Install PHP dependencies with phpunit/phpunit:dev-${{ matrix.phpunit-branch }} run: composer require phpunit/phpunit:dev-${{ matrix.phpunit-branch }} --ansi --no-interaction --no-progress - name: Unit Tests run: composer test:unit - name: Unit Tests in Parallel run: composer test:parallel if: startsWith(matrix.os, 'windows') != true - name: Integration Tests run: composer test:integration