-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (62 loc) · 1.9 KB
/
ci.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
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Run CI
on:
push:
branches: [ main ]
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
ci-build:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
strategy:
matrix:
include:
# SDK 4.x PHP >= 7.3 & <8.0
- php-verison: 7.3
use-lowest-dependencies: true
shared-test-version: 4.x-dev
- php-verison: 7.4
use-lowest-dependencies: true
shared-test-version: 4.x-dev
# SDK 4.x PHP >= 8.0
- php-verison: 8.0
use-lowest-dependencies: true
shared-test-version: 4.x-dev
- php-verison: 8.1
use-lowest-dependencies: true
shared-test-version: 4.x-dev
# SDK 5.x PHP >= 8.0
- php-verison: 8.0
use-lowest-dependencies: false
shared-test-version: 5.x-dev
- php-verison: 8.1
use-lowest-dependencies: false
shared-test-version: 5.x-dev
- php-verison: 8.2
use-lowest-dependencies: false
shared-test-version: 5.x-dev
# SDK 6.x PHP >= 8.1
- php-verison: 8.1
use-lowest-dependencies: false
shared-test-version: dev-main
- php-verison: 8.2
use-lowest-dependencies: false
shared-test-version: dev-main
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # If you only need the current version keep this.
- uses: ./.github/actions/ci
with:
php-version: ${{ matrix.php-version }}
use-lowest-dependencies: ${{ matrix.use-lowest-dependencies }}
shared-test-version: ${{ matrix.shared-test-version }}
token: ${{ secrets.GITHUB_TOKEN }}