-
Notifications
You must be signed in to change notification settings - Fork 38
57 lines (55 loc) · 1.42 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: "Tests"
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
tests-on-linux:
name: "Tests on linux"
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.experimental }}
services:
redis:
image: redis:6.0
ports:
- 6379:6379
options: --entrypoint redis-server
strategy:
fail-fast: false
matrix:
include:
- php-version: "8.4"
experimental: true
#composer-options: "--ignore-platform-reqs"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: "Setup PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
extensions: mbstring, sqlite, pdo, pdo_sqlite
ini-values: "memory_limit=-1"
tools: composer:v2
coverage: none
- name: "Install dependencies"
uses: nick-invision/retry@v3.0.0
with:
timeout_minutes: 5
max_attempts: 5
command: >-
composer install
--prefer-dist
--no-interaction
--no-progress
${{ matrix.composer-options }}
- name: "Run tests"
run: >-
./vendor/bin/phpunit
--display-incomplete
--display-skipped
--display-deprecations
--display-errors
--display-notices
--display-warning