Skip to content

Commit

Permalink
Merge pull request #164 from PHPCSStandards/feature/ghactions-use-reu…
Browse files Browse the repository at this point in the history
…sable-workflows

GH Actions/PHPStan: use reusable workflow
  • Loading branch information
jrfnl authored Oct 3, 2024
2 parents 5c86365 + aaa5dd1 commit 363bb47
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,28 +99,4 @@ jobs:
run: cs2pr ./phpcs-report.xml

phpstan:
name: "PHPStan"
runs-on: "ubuntu-latest"

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 'latest'
coverage: none
tools: phpstan

# Install dependencies and handle caching in one go.
# Dependencies need to be installed to make sure the PHPCS and PHPUnit classes are recognized.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
uses: "ramsey/composer-install@v3"
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Run PHPStan
run: phpstan analyse
uses: PHPCSStandards/.github/.github/workflows/reusable-phpstan.yml@main

0 comments on commit 363bb47

Please sign in to comment.