Skip to content

Commit 6db82b0

Browse files
authored
Merge pull request #165 from PHPCSStandards/feature/ghactions-use-reusable-workflows
GH Actions/PHPStan: use reusable workflow
2 parents 745d4d4 + aaa5dd1 commit 6db82b0

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

.github/workflows/cs.yml

+1-25
Original file line numberDiff line numberDiff line change
@@ -99,28 +99,4 @@ jobs:
9999
run: cs2pr ./phpcs-report.xml
100100

101101
phpstan:
102-
name: "PHPStan"
103-
runs-on: "ubuntu-latest"
104-
105-
steps:
106-
- name: Checkout code
107-
uses: actions/checkout@v4
108-
109-
- name: Install PHP
110-
uses: shivammathur/setup-php@v2
111-
with:
112-
php-version: 'latest'
113-
coverage: none
114-
tools: phpstan
115-
116-
# Install dependencies and handle caching in one go.
117-
# Dependencies need to be installed to make sure the PHPCS and PHPUnit classes are recognized.
118-
# @link https://github.com/marketplace/actions/install-composer-dependencies
119-
- name: Install Composer dependencies
120-
uses: "ramsey/composer-install@v3"
121-
with:
122-
# Bust the cache at least once a month - output format: YYYY-MM.
123-
custom-cache-suffix: $(date -u "+%Y-%m")
124-
125-
- name: Run PHPStan
126-
run: phpstan analyse
102+
uses: PHPCSStandards/.github/.github/workflows/reusable-phpstan.yml@main

0 commit comments

Comments
 (0)