-
Notifications
You must be signed in to change notification settings - Fork 263
81 lines (73 loc) · 1.87 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: "Tests"
on:
merge_group:
pull_request:
branches:
- "v*.*"
- "feature/*"
push:
branches:
- "v*.*"
- "feature/*"
env:
DRIVER_VERSION: "stable"
jobs:
phpunit:
name: "PHPUnit tests"
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: true
matrix:
os:
- "ubuntu-20.04"
php-version:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
mongodb-version:
- "4.4"
topology:
- "server"
include:
- os: "ubuntu-20.04"
php-version: "8.1"
mongodb-version: "6.0"
topology: "replica_set"
- os: "ubuntu-20.04"
php-version: "8.1"
mongodb-version: "6.0"
topology: "sharded_cluster"
- os: "ubuntu-20.04"
php-version: "8.1"
mongodb-version: "5.0"
topology: "server"
- os: "ubuntu-20.04"
php-version: "8.1"
mongodb-version: "4.4"
topology: "replica_set"
- os: "ubuntu-20.04"
php-version: "8.1"
mongodb-version: "4.4"
topology: "sharded_cluster"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 2
submodules: true
- id: setup-mongodb
uses: mongodb-labs/drivers-evergreen-tools@master
with:
version: ${{ matrix.mongodb-version }}
topology: ${{ matrix.topology }}
- name: "Setup"
uses: "./.github/actions/setup"
with:
php-version: ${{ matrix.php-version }}
driver-version: ${{ env.DRIVER_VERSION }}
php-ini-values: "zend.assertions=1"
- name: "Run PHPUnit"
run: "vendor/bin/phpunit"
env:
MONGODB_URI: ${{ steps.setup-mongodb.outputs.cluster-uri }}