-
-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (23 loc) · 701 Bytes
/
Copy pathunit-tests.yml
File metadata and controls
29 lines (23 loc) · 701 Bytes
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
name: Unit Tests
on: [pull_request]
jobs:
phpunit:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Remove PHPStan as a dependency
run: composer remove --dev phpstan/phpstan
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
- name: Run test suite
run: composer test:unit