File tree 2 files changed +16
-22
lines changed
2 files changed +16
-22
lines changed Original file line number Diff line number Diff line change 16
16
paths-ignore :
17
17
- " docs/**"
18
18
19
+ env :
20
+ PHP_VERSION : " 8.2"
21
+ DRIVER_VERSION : " stable"
22
+
19
23
jobs :
20
24
phpcs :
21
25
name : " phpcs"
22
26
runs-on : " ubuntu-22.04"
23
27
24
- strategy :
25
- matrix :
26
- php-version :
27
- - " 8.2"
28
- driver-version :
29
- - " stable"
30
-
31
28
steps :
32
29
- name : " Checkout"
33
30
uses : " actions/checkout@v3"
36
33
id : extcache
37
34
uses : shivammathur/cache-extensions@v1
38
35
with :
39
- php-version : ${{ matrix.php-version }}
40
- extensions : " mongodb-${{ matrix.driver-version }}"
36
+ php-version : ${{ env.PHP_VERSION }}
37
+ extensions : " mongodb-${{ env.DRIVER_VERSION }}"
41
38
key : " extcache-v1"
42
39
43
40
- name : Cache extensions
51
48
uses : " shivammathur/setup-php@v2"
52
49
with :
53
50
coverage : " none"
54
- extensions : " mongodb-${{ matrix.driver-version }}"
55
- php-version : " ${{ matrix.php-version }}"
51
+ extensions : " mongodb-${{ env.DRIVER_VERSION }}"
52
+ php-version : " ${{ env.PHP_VERSION }}"
56
53
tools : " cs2pr"
57
54
58
55
- name : " Show driver information"
Original file line number Diff line number Diff line change 16
16
paths-ignore :
17
17
- " docs/**"
18
18
19
+ env :
20
+ PHP_VERSION : " 8.2"
21
+ DRIVER_VERSION : " stable"
22
+
19
23
jobs :
20
24
psalm :
21
25
name : " Psalm"
22
26
runs-on : " ubuntu-22.04"
23
27
24
- strategy :
25
- matrix :
26
- php-version :
27
- - " 8.2"
28
- driver-version :
29
- - " stable"
30
-
31
28
steps :
32
29
- name : " Checkout"
33
30
uses : " actions/checkout@v3"
36
33
id : extcache
37
34
uses : shivammathur/cache-extensions@v1
38
35
with :
39
- php-version : ${{ matrix.php-version }}
40
- extensions : " mongodb-${{ matrix.driver-version }}"
36
+ php-version : ${{ env.PHP_VERSION }}
37
+ extensions : " mongodb-${{ ENV.DRIVER_VERSION }}"
41
38
key : " extcache-v1"
42
39
43
40
- name : Cache extensions
51
48
uses : " shivammathur/setup-php@v2"
52
49
with :
53
50
coverage : " none"
54
- extensions : " mongodb-${{ matrix.driver-version }}"
55
- php-version : " ${{ matrix.php-version }}"
51
+ extensions : " mongodb-${{ ENV.DRIVER_VERSION }}"
52
+ php-version : " ${{ env.PHP_VERSION }}"
56
53
tools : " cs2pr"
57
54
58
55
- name : " Show driver information"
You can’t perform that action at this time.
0 commit comments