From 3d3f06592b7876073ecc0949d58e35e29c840eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 21 Dec 2020 16:58:18 +0200 Subject: [PATCH] Fix PHP builds (#134) Pin image to specific version so that we don't get surprise failures down the line. Use common action to configure the default PHP version (the matrix versions only affect test running). Update PHP versions to supported versions in this image. --- .github/workflows/php.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 68d7f08..b72f284 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -4,13 +4,18 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: - php: [7.2, 7.3] + php: [7.4] steps: - name: Checkout uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} - name: Install dependencies run: composer install --prefer-dist --no-interaction --ansi @@ -19,4 +24,4 @@ jobs: run: composer run-script cs - name: Run tests - run: php${{ matrix.php }} ./vendor/bin/phpunit + run: php ./vendor/bin/phpunit