-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.06 KB
/
tests.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
name: "Tests"
on:
- "push"
- "pull_request"
jobs:
tests:
runs-on: "ubuntu-latest"
continue-on-error: "${{ matrix.continue-on-error }}"
strategy:
matrix:
include:
- php-versions: "8.2"
composer-option: ""
continue-on-error: false
- php-versions: "8.3"
composer-option: ""
continue-on-error: false
- php-versions: "8.4"
composer-option: "--ignore-platform-reqs"
continue-on-error: true
steps:
- uses: "actions/checkout@v4"
- name: "Setup PHP Action"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-versions }}"
extensions: "intl, xdebug"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--prefer-dist --no-progress ${{ matrix.composer-option }}"
- name: "Unit + Integration"
run: "vendor/bin/phpunit"
- name: "Mutation tests"
run: "vendor/bin/infection --min-msi=99 --no-progress --threads=5"