Skip to content

Commit

Permalink
Run phpstan also on 8
Browse files Browse the repository at this point in the history
  • Loading branch information
janlanger committed Nov 19, 2020
1 parent 2b4236b commit 6659485
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ jobs:

runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- "7.4"
- "8.0"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"
Expand All @@ -96,19 +102,24 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "7.4"
php-version: "${{ matrix.php-version }}"
tools: composer:v2

- name: "Cache dependencies"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php-7.4-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-7.4-composer-"
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-"

- name: "Install dependencies"
if: matrix.php-version != '8.0'
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Install dependencies PHP 8"
if: matrix.php-version == '8.0'
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest --ignore-platform-req=php"

- name: "PHPStan"
run: "vendor/bin/phing check-phpstan"

Expand Down

0 comments on commit 6659485

Please sign in to comment.