-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (29 loc) · 955 Bytes
/
phpstan.yml
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
name: PHPStan
on: [ push, pull_request_target ]
jobs:
phpstan:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Download and extract sxGeo database
run: |
wget https://sypexgeo.net/files/SxGeoCountry.zip
unzip SxGeoCountry.zip -d database/sxgeo
- name: Install dependencies
run: composer install --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute PHPStan
run: vendor/bin/phpstan analyse