-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (32 loc) · 993 Bytes
/
static_analysis.yml
File metadata and controls
40 lines (32 loc) · 993 Bytes
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
name: Static analysis
on:
push:
branches:
- 'master'
- '[0-9].[0-9]+'
pull_request: ~
jobs:
static-analysis:
name: ${{ matrix.script }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
script: ['phpstan', 'phpstan-tests']
steps:
- uses: actions/checkout@v6
- uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
coverage: none
# Install Flex as a global dependency to enable usage of extra.symfony.require
# while keeping Flex recipes from applying
- run: composer global config --no-plugins allow-plugins.symfony/flex true
- run: composer global require --no-scripts symfony/flex
- run: composer config extra.symfony.require ~7.4.0
- uses: ramsey/composer-install@v3
with:
dependency-versions: highest
composer-options: '--prefer-dist'
ignore-cache: 'yes'
- run: composer ${{ matrix.script }}