From 38f4c11fed1ab815a76e9c9df70ac9124814f93a Mon Sep 17 00:00:00 2001 From: Hans-Helge Buerger Date: Wed, 12 Jan 2022 12:57:41 +0100 Subject: [PATCH] Add GitHub Actions Matrix Strategy --- .github/workflows/php.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 07b6684..fb17a59 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -11,13 +11,18 @@ jobs: runs-on: ubuntu-latest + strategy: + matrix: + operating-system: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ] + php-versions: [ '7.4', '8.0', '8.1' ] + steps: - uses: actions/checkout@v2 - - name: Setup PHP 7.3 + - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '7.3' + php-version: ${{ matrix.php-versions }} tools: composer:v2 - name: Validate composer.json and composer.lock