-
Notifications
You must be signed in to change notification settings - Fork 22
31 lines (29 loc) · 786 Bytes
/
php.yml
File metadata and controls
31 lines (29 loc) · 786 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
30
31
name: PHP
on: [push]
jobs:
run:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
fail-fast: false
matrix:
php-versions: ['7.4', '8.1']
name: Tests - PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: xdebug
coverage: xdebug
- name: Install dependencies
working-directory: ./json2dto
run: composer install --no-interaction --prefer-dist --no-suggest
- name: Lint composer.json
working-directory: ./json2dto
run: composer validate
- name: Run Tests
working-directory: ./json2dto
run: composer test:ci