From 79736b9436d148d0dea3585ac0784a4ad1bab88b Mon Sep 17 00:00:00 2001 From: Frank Corso Date: Tue, 17 Nov 2020 12:42:05 -0500 Subject: [PATCH] Add multiple PHP versions in tests Issue #640 --- .github/workflows/phpunit-tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 917d69cf1..b6eb7979a 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -10,11 +10,24 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + php-versions: [ '5.6', '7.0', '7.1', '7.2', '7.3' ] + name: PHPUnit test on ${{ matrix.php-versions }} steps: - name: Checkout uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v1 + with: + php-version: ${{ matrix.php-versions }} + extension-csv: mbstring, intl + ini-values-csv: post_max_size=256M, short_open_tag=On + coverage: xdebug + pecl: false + - name: Validate composer.json and composer.lock run: composer validate