From 5b1fcb5c490a2aba66a029ec676819051cb75bf7 Mon Sep 17 00:00:00 2001 From: "Chen, Danny" Date: Sat, 19 Aug 2023 16:01:10 +0800 Subject: [PATCH] phpVersion matrix --- .github/workflows/php.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index fb254da..316bbd5 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -10,11 +10,19 @@ permissions: contents: read jobs: - build: - + test: runs-on: ubuntu-latest + strategy: + matrix: + phpVersion: ['8.1', '8.2'] + steps: + - name: Setup PHP with specific version of PECL extension + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.phpVersion }} + - uses: actions/checkout@v3 - name: Validate composer.json and composer.lock