Merge pull request #691 from localheinz/feature/phpunit

Enhancement: Run tests against `phpunit/phpunit:dev-main` every 12 hours
This commit is contained in:
Nuno Maduro
2023-03-16 12:09:47 +00:00
committed by GitHub

46
.github/workflows/nightly-tests.yml vendored Normal file
View File

@ -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