-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.39 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
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: ["*", "*/*"]
jobs:
test:
name: PHP ${{ matrix.php-versions }}-${{matrix.ts}} (Redis ${{ matrix.redis-versions }}) - ${{matrix.operating-system}}
runs-on: ubuntu-latest
services:
redis:
image: redis:${{ matrix.redis-versions }}
ports:
- 6379:6379
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ["8.1", "8.2"]
redis-versions: ["6", "7"]
ts: ["ts", "nts"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
with:
php-version: ${{ matrix.php-versions }}
ini-values: zend.assertions = 1, assert.active = On, assert.exception=1, assert.bail=1
coverage: xdebug
env:
phpts: ${{matrix.ts}}
update: true
uses: shivammathur/setup-php@v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
continue-on-error: ${{ matrix.php-versions != '8.1' }}
run: composer install --no-progress --no-interaction --ignore-platform-reqs
- name: Run test suite
run: composer test