-
Notifications
You must be signed in to change notification settings - Fork 31
41 lines (32 loc) · 1.03 KB
/
ci.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
36
37
38
39
40
41
name: Continuous Integration
on: [ push, pull_request ]
jobs:
ci:
name: Suite to run
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 7.4
- 8.0
steps:
- name: Configure PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
ini-values: memory_limit=-1, error_reporting=E_ALL, display_errors=On
php-version: ${{ matrix.php-version }}
- name: Checkout
uses: actions/checkout@v3
- name: "Cache dependencies installed with composer"
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
php${{ matrix.php-version }}-composer-
- name: Install Composer dependencies
run: composer install --no-progress
- name: Run PHP Code Sniffer
run: composer run php:cs-fixer
- name: Run PHP Unit tests
run: composer run php:unittests