Enhancement: Run tests against phpunit/phpunit:dev-main every 12 hours

This commit is contained in:
Andreas Möller
2023-03-16 10:35:47 +01:00
parent d71af91360
commit 544af117bb

46
.github/workflows/phpunit.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: 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