77concurrency :
88 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
99 cancel-in-progress : true
10+ # TODO: Add PHP 8.5 to the matrix once ext-grpc is compatible with it
1011jobs :
11- flake-check :
12- name : Flake check
13- runs-on : ubuntu-latest
14- timeout-minutes : 20
15- steps :
16- - name : Checkout
17- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18- - name : Install Nix
19- uses : DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
20- - name : Setup Cachix
21- uses : cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17
22- with :
23- name : opentelemetry
24- extraPullNames : nix-shell, php-src-nix
25- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
26- - name : Setup Nix magic cache
27- uses : DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
28- - name : Run Nix Flake check
29- run : nix flake check
3012 php-cs-fixer :
3113 name : PHP CS Fixer (PHP ${{ matrix.php }})
3214 runs-on : ubuntu-latest
@@ -37,23 +19,16 @@ jobs:
3719 - ' 8.2'
3820 - ' 8.3'
3921 - ' 8.4'
40- - ' 8.5'
4122 fail-fast : false
4223 steps :
4324 - name : Checkout
4425 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
45- - name : Install Nix
46- uses : DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
47- - name : Setup Cachix
48- uses : cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17
26+ - name : Setup PHP
27+ uses : shivammathur/setup-php@fcafdd6392932010c2bd5094439b8e33be2a8a09 # v2.37.0
4928 with :
50- name : opentelemetry
51- extraPullNames : nix-shell, php-src-nix
52- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
53- - name : Setup Nix magic cache
54- uses : DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
55- - name : Instantiate Nix develop
56- uses : nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1.2.1
29+ php-version : ${{ matrix.php }}
30+ extensions : mbstring
31+ coverage : none
5732 - name : Get composer cache directory
5833 id : composercache
5934 run : echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
6338 path : ${{ steps.composercache.outputs.dir }}
6439 key : ${{ runner.os }}-composer-tools-php-cs-fixer-${{ hashFiles('**/composer.json') }}
6540 restore-keys : ${{ runner.os }}-composer-tools-php-cs-fixer
66- - name : List PHP installed extensions
67- run : php -m
6841 - name : Install PHP CS Fixer dependencies
6942 run : cd tools/php-cs-fixer && composer update --no-interaction --no-progress --ansi
7043 - name : Run PHP-CS-Fixer fix
@@ -79,23 +52,16 @@ jobs:
7952 - ' 8.2'
8053 - ' 8.3'
8154 - ' 8.4'
82- - ' 8.5'
8355 fail-fast : false
8456 steps :
8557 - name : Checkout
8658 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
87- - name : Install Nix
88- uses : DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
89- - name : Setup Cachix
90- uses : cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17
59+ - name : Setup PHP
60+ uses : shivammathur/setup-php@fcafdd6392932010c2bd5094439b8e33be2a8a09 # v2.37.0
9161 with :
92- name : opentelemetry
93- extraPullNames : nix-shell, php-src-nix
94- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
95- - name : Setup Nix magic cache
96- uses : DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
97- - name : Instantiate Nix develop
98- uses : nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1.2.1
62+ php-version : ${{ matrix.php }}
63+ extensions : grpc, mbstring, opentelemetry, pdo, pdo_sqlite
64+ coverage : xdebug
9965 - name : Get composer cache directory
10066 id : composercache
10167 run : echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
10571 path : ${{ steps.composercache.outputs.dir }}
10672 key : ${{ runner.os }}-composer-tools-phpstan-${{ hashFiles('**/composer.json') }}
10773 restore-keys : ${{ runner.os }}-composer-tools-phpstan
108- - name : List PHP installed extensions
109- run : php -m
11074 - name : Install PHPStan dependencies
11175 run : |
11276 composer update --no-interaction --no-progress --ansi
@@ -134,13 +98,9 @@ jobs:
13498 - ' 8.2'
13599 - ' 8.3'
136100 - ' 8.4'
137- - ' 8.5'
138101 dependencies :
139102 - ' highest'
140103 include :
141- - php : ' 8.5'
142- dependencies : ' highest'
143- coverage : true
144104 - php : ' 8.4'
145105 dependencies : ' highest'
146106 coverage : true
@@ -154,18 +114,12 @@ jobs:
154114 steps :
155115 - name : Checkout
156116 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
157- - name : Install Nix
158- uses : DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
159- - name : Setup Cachix
160- uses : cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17
117+ - name : Setup PHP
118+ uses : shivammathur/setup-php@fcafdd6392932010c2bd5094439b8e33be2a8a09 # v2.37.0
161119 with :
162- name : opentelemetry
163- extraPullNames : nix-shell, php-src-nix
164- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
165- - name : Setup Nix magic cache
166- uses : DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
167- - name : Instantiate Nix develop
168- uses : nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1.2.1
120+ php-version : ${{ matrix.php }}
121+ extensions : grpc, mbstring, opentelemetry, pdo, pdo_sqlite
122+ coverage : xdebug
169123 - name : Get composer cache directory
170124 id : composercache
171125 run : echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
0 commit comments