-
-
Notifications
You must be signed in to change notification settings - Fork 108
47 lines (39 loc) · 1.17 KB
/
test-phpstan-extension.yml
File metadata and controls
47 lines (39 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: PHPStan extension Test
on:
push:
paths: &paths
- .github/workflows/test-phpstan-extension.yml
- utils/phpstan/**
- phpunit-utils.xml.dist
pull_request:
paths: *paths
schedule:
- cron: '0 0 1,16 * *'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-phpstan-rules:
name: Test PHPStan extension
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
composer-options: --prefer-dist
- name: Install PHPStan
run: |
composer bin phpstan install
- name: Test
run: vendor/bin/phpunit -c phpunit-utils.xml.dist --bootstrap utils/rector/tests/bootstrap.php --testsuite Phpstan
shell: bash
- name: Static analysis
run: bin/tools/phpstan/vendor/phpstan/phpstan/phpstan analyse -c utils/phpstan/phpstan.neon
shell: bash