From eb4a65436c68a79c33619b9ecd1d739d5c1d8856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tesa=CC=81rek?= Date: Wed, 19 Aug 2020 14:46:17 +0200 Subject: [PATCH] Run tests on multiple PHP version --- .github/workflows/php.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index c40cb57..f2f1e78 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -8,15 +8,19 @@ on: workflow_dispatch: jobs: - build: - - runs-on: ubuntu-latest + test: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ ubuntu-latest ] + php: [ '7.1', '7.2', '7.3', '7.4'] + name: Tests with PHP ${{ matrix.php }} steps: - uses: actions/checkout@v2 - uses: nanasess/setup-php@master with: - php-version: '7.3' + php-version: ${{ matrix.php }} - name: Validate composer.json and composer.lock run: composer validate