-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.38 KB
/
testing.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Testing
on: [push]
jobs:
tests:
name: "Tests"
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
os: [macos-latest, ubuntu-latest]
php-version: ["8.0", "8.1", "8.2", "8.3", "8.4"]
experimental: [false]
include:
- php-version: "8.5"
os: ubuntu-latest
experimental: true
steps:
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: xdebug3
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install dependencies"
run: composer install --prefer-dist --no-progress
- name: "Check Code Style"
run: vendor/bin/phpcs
- name: "Run PHP Static Analysis Tool"
run: vendor/bin/phpstan
- name: "Run PHPUnit tests"
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: "Run Infection mutation tests"
run: vendor/bin/infection --min-covered-msi=99 --min-msi=99
env:
INFECTION_DASHBOARD_API_KEY: ${{ secrets.INFECTION_DASHBOARD_API_KEY }}
- name: "Send coverage to codecov.io"
uses: codecov/codecov-action@v1
if: matrix.experimental == false
with:
token: ${{ secrets.CODECOV_TOKEN }}