diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml new file mode 100644 index 00000000..4833aa7b --- /dev/null +++ b/.github/workflows/nightly-tests.yml @@ -0,0 +1,46 @@ +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 + + - name: Integration Tests + run: composer test:integration