forked from Happyr/Doctrine-Specification
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.11 KB
/
test.yaml
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
name: Test
on: [push, pull_request ]
jobs:
test:
name: 'PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }}'
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
dependencies:
- lowest
- highest
php-version:
- '8.2'
- '8.3'
- '8.4'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- name: 'Install Composer dependencies (${{ matrix.dependencies }})'
uses: 'ramsey/composer-install@v1'
with:
dependency-versions: '${{ matrix.dependencies }}'
composer-options: --prefer-dist --prefer-stable ${{ matrix.php-version == '8.4' && '--ignore-platform-req=php' || '' }}
- name: Run Tests
run: composer test