Skip to content

Commit

Permalink
fix: set php version through command line
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed May 4, 2024
1 parent 9d9920d commit 6065d15
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ jobs:
${{ runner.os }}-composer-
- name: Install dependencies
run: |
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
composer require "php:^${{ inputs.php-version }}"
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader

- name: Run psalm
run: vendor/bin/psalm --output-format=github
run: vendor/bin/psalm --output-format=github --php-version=${{ inputs.php-version }}

phpstan:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,9 +76,7 @@ jobs:
${{ runner.os }}-composer-
- name: Install dependencies
run: |
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
composer require "php:^${{ inputs.php-version }}"
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader

- name: Run phpstan
run: vendor/bin/phpstan analyse

0 comments on commit 6065d15

Please sign in to comment.