-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 937 Bytes
/
main.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: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.4', '8.0', '8.1' ]
name: PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
# When updating the phpunit version make sure to also update it in the scrutinizer config
tools: composer:v2, phpunit:9.5, phpstan:1.2, infection:0.25
- name: Composer install
run: composer install
- name: Run PHPUnit Unit tests
run: phpunit --testsuite=unit
- name: Run PHPStan
run: phpstan analyse src
- name: Run Infection
run: infection --logger-github --git-diff-filter=AM --min-msi=69 --show-mutations