Skip to content

Commit

Permalink
massive update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isfedorov committed Aug 25, 2024
1 parent d31912c commit 88f8904
Show file tree
Hide file tree
Showing 65 changed files with 5,661 additions and 2,000 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ jobs:
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']
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
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
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
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
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}}
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:
Expand All @@ -41,13 +41,13 @@ jobs:
uses: actions/checkout@v4

- name: Composer Install
run: docker-compose -f docker-compose.yml run test_runner composer install --no-progress
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
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
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
run: docker compose -f docker-compose.yml run test_runner composer cs -- --show-progress=none
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"inspection"
],
"require-dev": {
"nikic/php-parser": "v5.0.0",
"phpdocumentor/reflection-docblock": "5.3.0",
"phpunit/phpunit": "10.5.5",
"friendsofphp/php-cs-fixer": "v3.46.0"
"nikic/php-parser": "v5.1.0",
"phpdocumentor/reflection-docblock": "5.4.1",
"phpunit/phpunit": "11.3.0",
"friendsofphp/php-cs-fixer": "v3.61.1"
},
"autoload": {
"files": ["PhpStormStubsMap.php"]
Expand Down
Loading

0 comments on commit 88f8904

Please sign in to comment.