Update countries database (2025-01-03) #20
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
tests: | |
name: Run tests & Analysis | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# PHP | |
- name: Setup PHP with Xdebug | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: xdebug | |
# Dependencies | |
- name: Install dependencies with composer | |
run: composer install -q --ignore-platform-reqs --no-progress --no-suggest --prefer-dist --optimize-autoloader | |
# Run PHPStan | |
- name: Run PHPStan | |
run: composer analyse | |
# Run tests | |
- name: Run tests with phpunit | |
run: export XDEBUG_MODE=coverage && composer test-coverage | |
# Run analysis | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |