55. new field in 1C for site product id #314
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |