forked from rezzza/SecurityBundle
-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (35 loc) · 1.17 KB
/
static-analysis.yml
File metadata and controls
37 lines (35 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
on: push
name: Static Analysis
jobs:
phpcsfixer:
name: PHP Coding Standards Fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Add HTTP basic auth credentials
run: echo '${{ secrets.COMPOSER_AUTH }}' > $GITHUB_WORKSPACE/auth.json
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: PHP Coding Standards Fixer
run: bin/php-cs-fixer fix --dry-run --diff
phpstan:
name: PHPStan Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add HTTP basic auth credentials
run: echo '${{ secrets.COMPOSER_AUTH }}' > $GITHUB_WORKSPACE/auth.json
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: PHPStan Static Analysis
run: bin/phpstan --memory-limit=1G --error-format=github