-
-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (29 loc) · 868 Bytes
/
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
name: Run CI
on: push
jobs:
build:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
run: composer install --prefer-dist --classmap-authoritative
- name: Check code style
run: composer run style-check -- -q --report=checkstyle | ./vendor/bin/cs2pr
- name: Run unit tests
run: composer run test-unit
- name: Run mutation tests
run: |
composer run test-unit -- --coverage-xml cov --log-junit=cov/result.junit.xml
composer run test-mutation -- --coverage=cov
env:
XDEBUG_MODE: coverage
- name: Check dependency usage
run: composer run composer-check