forked from cebe/php-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.08 KB
/
php.yml
File metadata and controls
51 lines (41 loc) · 1.08 KB
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
phpunit:
name: Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php:
- "8.4"
- "8.5"
dependencies:
- "lowest"
- "highest"
symfony-yaml: ["^6", "^7", "^8"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
tools: composer:v2
- name: Require specific symfony/yaml version
run: "composer require symfony/yaml:'${{ matrix.symfony-yaml }}' --no-interaction --ansi --no-install"
- name: "Install dependencies with Composer"
uses: ramsey/composer-install@v2
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: Validate test data
run: make lint
- name: PHPUnit tests
run: make test
- name: Code coverage
run: make coverage