-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (34 loc) · 1.26 KB
/
pull-request-checks.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
35
36
37
38
39
40
41
42
43
name: Pull request checks
on: [ pull_request ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4', '8.3']
composer-options:
- --prefer-dist --no-progress --no-interaction
- --prefer-dist --no-progress --no-interaction --prefer-lowest
steps:
# Checkout & installation
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php }}"
# Install project
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction
- name: Composer update
run: composer update ${{ matrix.composer-options }}
# Linters
- name: Run Composer linter
run: composer validate --strict --no-check-lock
- name: Run lint PHP
run: composer run-script php-lint
# Tests
- name: Run PHP unit test suite
run: vendor/bin/phpunit -v -c .