Add MongoDB\BSON\UTCDateTime::toDateTimeImmutable()
#2092
Workflow file for this run
This file contains 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: PhpStorm Stubs Tests | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
general: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] | |
name: Run tests against php ${{matrix.php}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build Docker Container | |
run: docker-compose -f docker-compose.yml build >/dev/null | |
env: | |
PHP_VERSION: ${{matrix.php}} | |
- name: Composer Install | |
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=${{matrix.php}} test_runner composer install --no-progress | |
env: | |
PHP_VERSION: ${{matrix.php}} | |
- name: Dump Reflection To File | |
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=${{matrix.php}} php_under_test /usr/local/bin/php tests/Tools/dump-reflection-to-file.php ReflectionData.json | |
env: | |
PHP_VERSION: ${{matrix.php}} | |
- name: Run Tests | |
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=${{matrix.php}} test_runner vendor/bin/phpunit --no-progress --testsuite PHP_${{matrix.php}} | |
env: | |
PHP_VERSION: ${{matrix.php}} | |
additional: | |
runs-on: ubuntu-latest | |
name: Run cs-fixer and stubs structure tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Composer Install | |
run: docker-compose -f docker-compose.yml run test_runner composer install --no-progress | |
- name: Test PhpDoc | |
run: docker-compose -f docker-compose.yml run test_runner vendor/bin/phpunit --no-progress --testsuite PhpDoc | |
- name: Test Stubs Map, Structure and Reflection | |
run: docker-compose -f docker-compose.yml run test_runner vendor/bin/phpunit --no-progress --testsuite Structure | |
- name: run cs fixer | |
run: docker-compose -f docker-compose.yml run test_runner composer cs -- --show-progress=none |