|
1 | | - |
2 | 1 | name: "Continuous Integration" |
3 | 2 |
|
4 | 3 | on: |
|
9 | 8 | branches: |
10 | 9 | - "*.x" |
11 | 10 |
|
12 | | -env: |
13 | | - fail-fast: true |
14 | | - |
15 | 11 | jobs: |
16 | | - |
17 | | - unit-tests: |
18 | | - name: "Unit tests" |
19 | | - runs-on: "ubuntu-20.04" |
20 | | - |
21 | | - strategy: |
22 | | - matrix: |
23 | | - php-version: |
24 | | - - "7.2" |
25 | | - - "7.3" |
26 | | - - "7.4" |
27 | | - - "8.0" |
28 | | - - "8.1" |
29 | | - |
30 | | - steps: |
31 | | - - name: "Checkout code" |
32 | | - uses: "actions/checkout@v4" |
33 | | - |
34 | | - - name: "Install PHP" |
35 | | - uses: "shivammathur/setup-php@v2" |
36 | | - with: |
37 | | - coverage: "none" |
38 | | - php-version: "${{ matrix.php-version }}" |
39 | | - tools: "cs2pr" |
40 | | - |
41 | | - - name: "Install dependencies with Composer" |
42 | | - uses: "ramsey/composer-install@v3" |
43 | | - with: |
44 | | - dependency-versions: "highest" |
45 | | - |
46 | | - - name: "Test fixes" |
47 | | - run: "vendor/bin/phpunit --coverage-text" |
48 | | - |
49 | | - static-analysis-phpstan: |
50 | | - name: "Static Analysis with PHPStan" |
51 | | - runs-on: "ubuntu-20.04" |
52 | | - |
53 | | - strategy: |
54 | | - matrix: |
55 | | - php-version: |
56 | | - - "7.4" |
57 | | - |
58 | | - steps: |
59 | | - - name: "Checkout code" |
60 | | - uses: "actions/checkout@v4" |
61 | | - |
62 | | - - name: "Install PHP" |
63 | | - uses: "shivammathur/setup-php@v2" |
64 | | - with: |
65 | | - coverage: "none" |
66 | | - php-version: "${{ matrix.php-version }}" |
67 | | - extensions: "mbstring" |
68 | | - tools: "cs2pr" |
69 | | - |
70 | | - - name: "Install dependencies with Composer" |
71 | | - uses: "ramsey/composer-install@v3" |
72 | | - with: |
73 | | - dependency-versions: "highest" |
74 | | - |
75 | | - - name: "Run a static analysis with phpstan/phpstan" |
76 | | - run: "vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr" |
77 | | - |
78 | | - |
79 | | - static-analysis-psalm: |
80 | | - name: "Static Analysis with Psalm" |
81 | | - runs-on: "ubuntu-20.04" |
82 | | - |
83 | | - strategy: |
84 | | - matrix: |
85 | | - php-version: |
86 | | - - "7.4" |
87 | | - |
88 | | - steps: |
89 | | - - name: "Checkout code" |
90 | | - uses: "actions/checkout@v4" |
91 | | - |
92 | | - - name: "Install PHP" |
93 | | - uses: "shivammathur/setup-php@v2" |
94 | | - with: |
95 | | - coverage: "none" |
96 | | - php-version: "${{ matrix.php-version }}" |
97 | | - |
98 | | - - name: "Install dependencies with Composer" |
99 | | - uses: "ramsey/composer-install@v3" |
100 | | - with: |
101 | | - dependency-versions: "highest" |
102 | | - |
103 | | - - name: "Run a static analysis with vimeo/psalm" |
104 | | - run: "vendor/bin/psalm --show-info=false --stats --output-format=github --threads=4" |
105 | | - |
106 | | - coding-standards: |
107 | | - name: "Coding Standards" |
108 | | - runs-on: "ubuntu-20.04" |
109 | | - |
110 | | - strategy: |
111 | | - matrix: |
112 | | - php-version: |
113 | | - - "7.4" |
114 | | - |
115 | | - steps: |
116 | | - - name: "Checkout" |
117 | | - uses: "actions/checkout@v4" |
118 | | - |
119 | | - - name: "Install PHP" |
120 | | - uses: "shivammathur/setup-php@v2" |
121 | | - with: |
122 | | - coverage: "none" |
123 | | - php-version: "${{ matrix.php-version }}" |
124 | | - tools: "cs2pr" |
125 | | - |
126 | | - - name: "Install dependencies with Composer" |
127 | | - uses: "ramsey/composer-install@v3" |
128 | | - with: |
129 | | - dependency-versions: "highest" |
130 | | - |
131 | | - # Remove -q when updating to phpcs v4 |
132 | | - - name: "Run squizlabs/php_codesniffer" |
133 | | - run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr" |
| 12 | + phpunit: |
| 13 | + name: "PHPUnit" |
| 14 | + uses: "doctrine/.github/.github/workflows/[email protected]" |
| 15 | + with: |
| 16 | + php-versions: '["8.1", "8.2", "8.3"]' |
| 17 | + secrets: |
| 18 | + CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" |
0 commit comments