-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (27 loc) · 1017 Bytes
/
run-tests.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
name: Run Tests
on: [push]
jobs:
php-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
php: [8.1, 8.2, 8.3]
dependency-version: [lowest, highest]
name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} on ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4.1.4
- name: Setup PHP
uses: shivammathur/setup-php@2.30.4
with:
php-version: ${{ matrix.php }}
extensions: mbstring, fileinfo
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependency-version }}
composer-options: "--no-suggest --prefer-dist"
- name: Execute tests
run: vendor/bin/phpunit