Skip to content

Introduce ip-api Provider #360

Introduce ip-api Provider

Introduce ip-api Provider #360

Workflow file for this run

name: Geocoder
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.0', '8.1', '8.2', '8.3']
deps: ['low', 'high']
name: PHP ${{ matrix.php-version }} (${{ matrix.deps }})
steps:
- uses: actions/checkout@v4
- name: Use PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
if: ${{ matrix.deps == null }}
run: composer update --no-progress --prefer-dist
- name: Install dependencies (low)
if: ${{ matrix.deps == 'low' }}
run: composer update --no-progress --prefer-lowest --prefer-stable
- name: Install dependencies (high)
if: ${{ matrix.deps == 'high' }}
run: composer update --no-progress
- name: Run test suite
run: composer run-script test
phpstan:
runs-on: ubuntu-latest
name: PHPStan
steps:
- uses: actions/checkout@v4
- name: Use PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: curl
- name: Install dependencies
run: composer install --no-progress
- name: Run PHPStan
run: composer run-script analyse
php-cs-fixer:
runs-on: ubuntu-latest
name: PHP CS Fixer
steps:
- uses: actions/checkout@v4
- name: Use PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: curl
- name: Install dependencies
run: composer install --no-progress
- name: Run PHPStan
run: composer run-script cs