From b9b1feb45bec4b7a2c20791c45d8671dd5b2b897 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Tue, 25 Jan 2022 22:14:36 +0500 Subject: [PATCH] wip --- .github/workflows/ci.yml | 21 +++++++++++++-------- composer.json | 2 +- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5d639b..e38ebe9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,19 +14,24 @@ on: jobs: phpunit: name: Tests (PHPUnit) L${{ matrix.laravel }} + runs-on: ubuntu-latest strategy: matrix: laravel: [6, 8, 9] - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install composer dependencies - run: composer require "laravel/framework:^${{matrix.laravel}}.0" - - name: Run tests - run: vendor/bin/phpunit + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + + - name: Install dependencies + run: composer require "laravel/framework:^${{matrix.laravel}}.0" + - name: Run tests + run: vendor/bin/phpunit phpstan: name: Static analysis (PHPStan) diff --git a/composer.json b/composer.json index d9d1872..e20f21b 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } }, "require": { - "php": "7.2|8.0", + "php": "7.2|8.0.14", "illuminate/translation": "^6.0|^8.0|^9.0" }, "require-dev": {