Skip to content

Commit a2b955a

Browse files
committed
Require grpc extension in grpc workflow
1 parent 83f0548 commit a2b955a

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

.github/workflows/grpc-tests.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ jobs:
3838
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
3939

4040
env:
41-
php-version: '8.5'
42-
extensions: grpc
4341
key: cache-grpc
4442

4543
steps:
@@ -52,8 +50,8 @@ jobs:
5250
id: extcache
5351
uses: shivammathur/cache-extensions@v1
5452
with:
55-
php-version: ${{ env.php-version }}
56-
extensions: ${{ env.extensions }}
53+
php-version: 8.5
54+
extensions: grpc
5755
key: ${{ env.key }}
5856

5957
- name: Cache extensions
@@ -75,17 +73,6 @@ jobs:
7573
- name: Setup problem matchers for PHP
7674
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
7775

78-
- name: Detect gRPC extension
79-
id: grpc
80-
run: |
81-
if php -m | grep -qi '^grpc$'; then
82-
echo "grpc_present=true" >> "$GITHUB_OUTPUT"
83-
else
84-
echo "grpc_present=false" >> "$GITHUB_OUTPUT"
85-
echo "COMPOSER_IGNORE_PLATFORM_REQ=ext-grpc" >> "$GITHUB_ENV"
86-
echo "gRPC extension not available; allowing Composer to proceed without ext-grpc."
87-
fi
88-
8976
- uses: "ramsey/composer-install@v3"
9077

9178
- name: Setup Problem Matchers for PHPUnit

0 commit comments

Comments
 (0)