Skip to content

Commit

Permalink
No special docker image for phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Feb 13, 2021
1 parent e70d8ed commit 19b3498
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,29 @@ jobs:
steps:
- uses: actions/checkout@master

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-version }}

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: PHPStan
uses: docker://oskarstark/phpstan-ga
with:
args: analyse lib tests
- name: Run phpstan
run: make phpstan

tests:
name: Tests
Expand Down

0 comments on commit 19b3498

Please sign in to comment.