Skip to content

phpstan and php-cs-fixer: updates #303

phpstan and php-cs-fixer: updates

phpstan and php-cs-fixer: updates #303

Workflow file for this run

name: Provider
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: PHP ${{ matrix.php-version }} / ${{ matrix.provider }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.0', '8.1', '8.2', '8.3']
provider:
- AlgoliaPlaces
- ArcGISOnline
- AzureMaps
- BingMaps
- Cache
- Chain
- FreeGeoIp
- GeoIP2
# - GeoIPs
- GeoPlugin
- GeocodeEarth
- Geonames
- GoogleMaps
- GoogleMapsPlaces
- GraphHopper
- Here
- HostIp
- IP2Location
# - IP2LocationBinary
- IpInfo
- IpInfoDb
- Ipstack
- LocationIQ
- MapQuest
- Mapbox
# - Mapzen
- MaxMind
- MaxMindBinary
- Nominatim
- OpenCage
- OpenRouteService
- Pelias
- Photon
- PickPoint
- TomTom
- Yandex
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
working-directory: ./src/Provider/${{ matrix.provider }}
run: composer validate
- name: Install dependencies
working-directory: ./src/Provider/${{ matrix.provider }}
run: composer update --no-progress
- name: Run test suite
working-directory: ./src/Provider/${{ matrix.provider }}
run: composer run-script test