-
Notifications
You must be signed in to change notification settings - Fork 802
53 lines (43 loc) · 1.95 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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', '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
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