From 30a70c9ff9d5507b6266a9e73af098eaa3b9d003 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Thu, 16 Feb 2023 12:52:51 +0100 Subject: [PATCH] Add setup-php step --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da5eadb..bcc924c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,11 +23,15 @@ jobs: php: 8.1 steps: - - uses: actions/checkout@v2 - - name: Install composer dependencies - run: composer require "illuminate/support:^${{ matrix.laravel }}.0" - - name: Run tests - run: vendor/bin/pest + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '${{ matrix.php }}' + - name: Install composer dependencies + uses: actions/checkout@v2 + run: composer require "illuminate/support:^${{ matrix.laravel }}.0" + - name: Run tests + run: vendor/bin/pest phpstan: name: Static analysis (PHPStan)