forked from Torann/laravel-geoip
-
Notifications
You must be signed in to change notification settings - Fork 4
Merge branch '3.x' #231
This file contains hidden or 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: run-tests
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.1]
laravel: [^10.0]
dependencies: [lowest, highest]
name: P${{ matrix.php }} | L${{ matrix.laravel }} | ${{ matrix.dependencies == 'highest' && '↑' || '↓' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install lowest dependencies from composer.json
if: "matrix.dependencies == 'lowest'"
run: composer update --prefer-dist --no-interaction --prefer-dist --prefer-stable --prefer-lowest
- name: Install highest dependencies from composer.json
if: "matrix.dependencies == 'highest'"
run: composer update --prefer-dist --no-interaction --prefer-dist --prefer-stable
- name: Execute tests
run: composer test